diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 3fce53fd5..2d78505b6 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -2,6 +2,9 @@ $finder = PhpCsFixer\Finder::create() ->files() + ->notPath([ + __DIR__ . '/src/AmazonPHP/SellingPartner/ObjectSerializer.php' + ]) ->in([ __DIR__ . '/src', __DIR__ . '/tools/src', @@ -186,6 +189,8 @@ 'phpdoc_types' => ['groups' => ['simple', 'meta']], 'phpdoc_types_order' => true, 'phpdoc_var_without_name' => true, + 'phpdoc_to_param_type' => true, + 'phpdoc_to_return_type' => true, 'pow_to_exponentiation' => true, 'protected_to_private' => true, 'return_assignment' => true, @@ -207,7 +212,6 @@ 'trailing_comma_in_multiline' => true, 'trim_array_spaces' => true, 'unary_operator_spaces' => true, - 'phpdoc_to_param_type' => true, 'visibility_required' => [ 'elements' => [ 'const', diff --git a/composer.json b/composer.json index 527ad86b0..4d07d1fd1 100644 --- a/composer.json +++ b/composer.json @@ -47,15 +47,14 @@ "@clean", "bin/generate.sh", "@rector:process:force:php", - "@cs:php:fix", - "@rector:process:force:types", "@cs:php:fix" ], "build": [ "@static:analyze" ], "static:analyze": [ - "tools/vendor/bin/php-cs-fixer fix --dry-run" + "tools/vendor/bin/php-cs-fixer fix --dry-run", + "tools/vendor/bin/psalm" ], "test": [ "@test:unit" @@ -66,18 +65,14 @@ "test:functional": [ "tools/vendor/bin/phpunit --testsuite functional" ], - "rector:process": [ + "rector:process:php": [ "Composer\\Config::disableProcessTimeout", - "tools/vendor/bin/rector process --dry-run" + "tools/vendor/bin/rector process --config=rector-php.php --dry-run" ], "rector:process:force:php": [ "Composer\\Config::disableProcessTimeout", "tools/vendor/bin/rector process --no-diffs --no-progress-bar --config=rector-php.php" ], - "rector:process:force:types": [ - "Composer\\Config::disableProcessTimeout", - "tools/vendor/bin/rector process --no-diffs --no-progress-bar --config=rector-types.php" - ], "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", "tools:install": "composer install --working-dir=./tools", "post-install-cmd": [ diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 000000000..5117d270c --- /dev/null +++ b/psalm.xml @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/rector-php.php b/rector-php.php index a0a97a924..e11675451 100644 --- a/rector-php.php +++ b/rector-php.php @@ -40,12 +40,11 @@ ]); $config->sets([ SetList::PHP_73, - SetList::PHP_74 + SetList::PHP_74, + SetList::TYPE_DECLARATION, + SetList::TYPE_DECLARATION_STRICT ]); - $config->import(SetList::PHP_73); - $config->import(SetList::PHP_74); - /** * Explanation here: https://github.com/amazon-php/sp-api-sdk/issues/101#issuecomment-1002159988 */ diff --git a/rector-types.php b/rector-types.php deleted file mode 100644 index a59f9a393..000000000 --- a/rector-types.php +++ /dev/null @@ -1,23 +0,0 @@ -autoloadPaths([ - __DIR__ , - ]); - $config->paths([ - __DIR__ . '/src', - ]); - $config->skip([ - __DIR__ . '/src/AmazonPHP/SellingPartner/Marketplace.php', - __DIR__ . '/src/AmazonPHP/SellingPartner/AccessToken.php', - ]); - - $config->import(SetList::TYPE_DECLARATION); - $config->import(SetList::TYPE_DECLARATION_STRICT); -}; diff --git a/resources/php-amazon-selling-partner-api/api_interface.mustache b/resources/php-amazon-selling-partner-api/api_interface.mustache index a65731ea0..46b755201 100644 --- a/resources/php-amazon-selling-partner-api/api_interface.mustache +++ b/resources/php-amazon-selling-partner-api/api_interface.mustache @@ -68,35 +68,6 @@ use Psr\Http\Message\RequestInterface; * @return {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}null{{/returnType}} */ public function {{operationId}}(AccessToken $accessToken, string $region{{^vendorExtensions.x-group-parameters}}{{#allParams}}, ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}{{^-last}}{{/-last}}{{/allParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}, $associative_array{{/vendorExtensions.x-group-parameters}}); - - - /** - * Create request for operation '{{{operationId}}}' - * - {{#vendorExtensions.x-group-parameters}} - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * - {{/vendorExtensions.x-group-parameters}} - {{#servers}} - {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. - {{/-first}} - * URL: {{{url}}} - {{#-last}} - * - {{/-last}} - {{/servers}} - * @param AccessToken $accessToken - * @param string $region - {{#allParams}} - * @param {{{dataType}}}{{^required}}{{#defaultValue}}{{/defaultValue}}{{^defaultValue}}|null{{/defaultValue}}{{/required}} ${{paramName}} {{#description}}{{description}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}} - {{/allParams}} - * - * @throws InvalidArgumentException - * @return RequestInterface - */ - public function {{operationId}}Request(AccessToken $accessToken, string $region{{^vendorExtensions.x-group-parameters}}{{#allParams}}, ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}{{^-last}}{{/-last}}{{/allParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}, $associative_array{{/vendorExtensions.x-group-parameters}}) : RequestInterface; - {{/operation}} } {{/operations}} \ No newline at end of file diff --git a/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php b/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php index c3a903ce6..11808bfda 100644 --- a/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php @@ -143,8 +143,6 @@ public function createContentDocument(AccessToken $accessToken, string $region, /** * Create request for operation 'createContentDocument'. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) * @param \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) * @@ -258,6 +256,8 @@ public function createContentDocumentRequest(AccessToken $accessToken, string $r /** * Operation getContentDocument. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -355,8 +355,6 @@ public function getContentDocument(AccessToken $accessToken, string $region, str /** * Create request for operation 'getContentDocument'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -596,8 +594,6 @@ public function listContentDocumentAsinRelations(AccessToken $accessToken, strin /** * Create request for operation 'listContentDocumentAsinRelations'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -849,8 +845,6 @@ public function postContentDocumentApprovalSubmission(AccessToken $accessToken, /** * Create request for operation 'postContentDocumentApprovalSubmission'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -1068,8 +1062,6 @@ public function postContentDocumentAsinRelations(AccessToken $accessToken, strin /** * Create request for operation 'postContentDocumentAsinRelations'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) @@ -1302,8 +1294,6 @@ public function postContentDocumentSuspendSubmission(AccessToken $accessToken, s /** * Create request for operation 'postContentDocumentSuspendSubmission'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -1520,8 +1510,6 @@ public function searchContentDocuments(AccessToken $accessToken, string $region, /** * Create request for operation 'searchContentDocuments'. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) * @param null|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) * @@ -1731,8 +1719,6 @@ public function searchContentPublishRecords(AccessToken $accessToken, string $re /** * Create request for operation 'searchContentPublishRecords'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -1962,8 +1948,6 @@ public function updateContentDocument(AccessToken $accessToken, string $region, /** * Create request for operation 'updateContentDocument'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) @@ -2197,8 +2181,6 @@ public function validateContentDocumentAsinRelations(AccessToken $accessToken, s /** * Create request for operation 'validateContentDocumentAsinRelations'. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) * @param \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) * @param null|string[] $asin_set The set of ASINs. (optional) diff --git a/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDKInterface.php index 19f7d09e7..c6eaf5dfa 100644 --- a/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for A+ Content Management. @@ -64,8 +63,6 @@ interface APlusSDKInterface /** * Operation createContentDocument. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) * @param \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) * @@ -74,27 +71,11 @@ interface APlusSDKInterface * * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse */ - public function createContentDocument(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request); - - /** - * Create request for operation 'createContentDocument'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createContentDocumentRequest(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request) : RequestInterface; + public function createContentDocument(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse; /** * Operation getContentDocument. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -104,28 +85,11 @@ public function createContentDocumentRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\APlus\GetContentDocumentResponse */ - public function getContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, array $included_data_set); - - /** - * Create request for operation 'getContentDocument'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getContentDocumentRequest(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, array $included_data_set) : RequestInterface; + public function getContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, array $included_data_set) : \AmazonPHP\SellingPartner\Model\APlus\GetContentDocumentResponse; /** * Operation listContentDocumentAsinRelations. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -137,30 +101,11 @@ public function getContentDocumentRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\APlus\ListContentDocumentAsinRelationsResponse */ - public function listContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, ?array $included_data_set = null, ?array $asin_set = null, ?string $page_token = null); - - /** - * Create request for operation 'listContentDocumentAsinRelations'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 null|string[] $asin_set The set of ASINs. (optional) - * @param null|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 RequestInterface - */ - public function listContentDocumentAsinRelationsRequest(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, ?array $included_data_set = null, ?array $asin_set = null, ?string $page_token = null) : RequestInterface; + public function listContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, ?array $included_data_set = null, ?array $asin_set = null, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\ListContentDocumentAsinRelationsResponse; /** * Operation postContentDocumentApprovalSubmission. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -169,27 +114,11 @@ public function listContentDocumentAsinRelationsRequest(AccessToken $accessToken * * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentApprovalSubmissionResponse */ - public function postContentDocumentApprovalSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id); - - /** - * Create request for operation 'postContentDocumentApprovalSubmission'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function postContentDocumentApprovalSubmissionRequest(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : RequestInterface; + public function postContentDocumentApprovalSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentApprovalSubmissionResponse; /** * Operation postContentDocumentAsinRelations. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) @@ -199,28 +128,11 @@ public function postContentDocumentApprovalSubmissionRequest(AccessToken $access * * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsResponse */ - public function postContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request); - - /** - * Create request for operation 'postContentDocumentAsinRelations'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function postContentDocumentAsinRelationsRequest(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request) : RequestInterface; + public function postContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsResponse; /** * Operation postContentDocumentSuspendSubmission. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -229,27 +141,11 @@ public function postContentDocumentAsinRelationsRequest(AccessToken $accessToken * * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentSuspendSubmissionResponse */ - public function postContentDocumentSuspendSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id); - - /** - * Create request for operation 'postContentDocumentSuspendSubmission'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function postContentDocumentSuspendSubmissionRequest(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : RequestInterface; + public function postContentDocumentSuspendSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentSuspendSubmissionResponse; /** * Operation searchContentDocuments. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) * @param null|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) * @@ -258,27 +154,11 @@ public function postContentDocumentSuspendSubmissionRequest(AccessToken $accessT * * @return \AmazonPHP\SellingPartner\Model\APlus\SearchContentDocumentsResponse */ - public function searchContentDocuments(AccessToken $accessToken, string $region, string $marketplace_id, ?string $page_token = null); - - /** - * Create request for operation 'searchContentDocuments'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param null|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 RequestInterface - */ - public function searchContentDocumentsRequest(AccessToken $accessToken, string $region, string $marketplace_id, ?string $page_token = null) : RequestInterface; + public function searchContentDocuments(AccessToken $accessToken, string $region, string $marketplace_id, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\SearchContentDocumentsResponse; /** * Operation searchContentPublishRecords. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -288,28 +168,11 @@ public function searchContentDocumentsRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\APlus\SearchContentPublishRecordsResponse */ - public function searchContentPublishRecords(AccessToken $accessToken, string $region, string $marketplace_id, string $asin, ?string $page_token = null); - - /** - * Create request for operation 'searchContentPublishRecords'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 RequestInterface - */ - public function searchContentPublishRecordsRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $asin, ?string $page_token = null) : RequestInterface; + public function searchContentPublishRecords(AccessToken $accessToken, string $region, string $marketplace_id, string $asin, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\SearchContentPublishRecordsResponse; /** * Operation updateContentDocument. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) @@ -319,28 +182,11 @@ public function searchContentPublishRecordsRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse */ - public function updateContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request); - - /** - * Create request for operation 'updateContentDocument'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateContentDocumentRequest(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request) : RequestInterface; + public function updateContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse; /** * Operation validateContentDocumentAsinRelations. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) * @param \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) * @param null|string[] $asin_set The set of ASINs. (optional) @@ -350,20 +196,5 @@ public function updateContentDocumentRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\APlus\ValidateContentDocumentAsinRelationsResponse */ - public function validateContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request, ?array $asin_set = null); - - /** - * Create request for operation 'validateContentDocumentAsinRelations'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * @param null|string[] $asin_set The set of ASINs. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function validateContentDocumentAsinRelationsRequest(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request, ?array $asin_set = null) : RequestInterface; + public function validateContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request, ?array $asin_set = null) : \AmazonPHP\SellingPartner\Model\APlus\ValidateContentDocumentAsinRelationsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDK.php b/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDK.php index 17da954f6..749ec12f0 100644 --- a/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDK.php @@ -146,8 +146,6 @@ public function getAuthorizationCode(AccessToken $accessToken, string $region, s /** * Create request for operation 'getAuthorizationCode'. * - * @param AccessToken $accessToken - * @param string $region * @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) diff --git a/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDKInterface.php index 3e6854536..4d0d88ec0 100644 --- a/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Authorization. @@ -41,20 +40,5 @@ interface AuthorizationSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Authorization\GetAuthorizationCodeResponse */ - public function getAuthorizationCode(AccessToken $accessToken, string $region, string $selling_partner_id, string $developer_id, string $mws_auth_token); - - /** - * Create request for operation 'getAuthorizationCode'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getAuthorizationCodeRequest(AccessToken $accessToken, string $region, string $selling_partner_id, string $developer_id, string $mws_auth_token) : RequestInterface; + public function getAuthorizationCode(AccessToken $accessToken, string $region, string $selling_partner_id, string $developer_id, string $mws_auth_token) : \AmazonPHP\SellingPartner\Model\Authorization\GetAuthorizationCodeResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php b/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php index 0d45d0a0d..a77b2b940 100644 --- a/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation getCatalogItem. * + * @param AccessToken $accessToken + * @param string $region * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) @@ -143,8 +145,6 @@ public function getCatalogItem(AccessToken $accessToken, string $region, string /** * Create request for operation 'getCatalogItem'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) @@ -272,6 +272,8 @@ public function getCatalogItemRequest(AccessToken $accessToken, string $region, /** * Operation searchCatalogItems. * + * @param AccessToken $accessToken + * @param string $region * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) @@ -375,8 +377,6 @@ public function searchCatalogItems(AccessToken $accessToken, string $region, arr /** * Create request for operation 'searchCatalogItems'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) diff --git a/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDKInterface.php index c6af01e77..26bbbf2d5 100644 --- a/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Catalog Items. @@ -32,8 +31,6 @@ interface CatalogItemSDKInterface /** * Operation getCatalogItem. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) @@ -44,29 +41,11 @@ interface CatalogItemSDKInterface * * @return \AmazonPHP\SellingPartner\Model\CatalogItem\Item */ - public function getCatalogItem(AccessToken $accessToken, string $region, string $asin, array $marketplace_ids, ?array $included_data = null, ?string $locale = null); - - /** - * Create request for operation 'getCatalogItem'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param null|string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getCatalogItemRequest(AccessToken $accessToken, string $region, string $asin, array $marketplace_ids, ?array $included_data = null, ?string $locale = null) : RequestInterface; + public function getCatalogItem(AccessToken $accessToken, string $region, string $asin, array $marketplace_ids, ?array $included_data = null, ?string $locale = null) : \AmazonPHP\SellingPartner\Model\CatalogItem\Item; /** * Operation searchCatalogItems. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) @@ -82,26 +61,5 @@ public function getCatalogItemRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\CatalogItem\ItemSearchResults */ - public function searchCatalogItems(AccessToken $accessToken, string $region, array $keywords, array $marketplace_ids, ?array $included_data = null, ?array $brand_names = null, ?array $classification_ids = null, int $page_size = 10, ?string $page_token = null, ?string $keywords_locale = null, ?string $locale = null); - - /** - * Create request for operation 'searchCatalogItems'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param null|string[] $brand_names A comma-delimited list of brand names to limit the search to. (optional) - * @param null|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 null|string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param null|string $keywords_locale The language the keywords are provided in. Defaults to the primary locale of the marketplace. (optional) - * @param null|string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function searchCatalogItemsRequest(AccessToken $accessToken, string $region, array $keywords, array $marketplace_ids, ?array $included_data = null, ?array $brand_names = null, ?array $classification_ids = null, int $page_size = 10, ?string $page_token = null, ?string $keywords_locale = null, ?string $locale = null) : RequestInterface; + public function searchCatalogItems(AccessToken $accessToken, string $region, array $keywords, array $marketplace_ids, ?array $included_data = null, ?array $brand_names = null, ?array $classification_ids = null, int $page_size = 10, ?string $page_token = null, ?string $keywords_locale = null, ?string $locale = null) : \AmazonPHP\SellingPartner\Model\CatalogItem\ItemSearchResults; } diff --git a/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php b/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php index b0a94e6cc..be87798b3 100644 --- a/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php @@ -145,8 +145,6 @@ public function listFinancialEventGroups(AccessToken $accessToken, string $regio /** * Create request for operation 'listFinancialEventGroups'. * - * @param AccessToken $accessToken - * @param string $region * @param int $max_results_per_page The maximum number of results to return per page. (optional, default to 100) * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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) @@ -368,8 +366,6 @@ public function listFinancialEvents(AccessToken $accessToken, string $region, in /** * Create request for operation 'listFinancialEvents'. * - * @param AccessToken $accessToken - * @param string $region * @param int $max_results_per_page The maximum number of results to return per page. (optional, default to 100) * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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) @@ -590,8 +586,6 @@ public function listFinancialEventsByGroupId(AccessToken $accessToken, string $r /** * Create request for operation 'listFinancialEventsByGroupId'. * - * @param AccessToken $accessToken - * @param string $region * @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. (optional, default to 100) * @param null|string $next_token A string token returned in the response of your previous request. (optional) @@ -811,8 +805,6 @@ public function listFinancialEventsByOrderId(AccessToken $accessToken, string $r /** * Create request for operation 'listFinancialEventsByOrderId'. * - * @param AccessToken $accessToken - * @param string $region * @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. (optional, default to 100) * @param null|string $next_token A string token returned in the response of your previous request. (optional) diff --git a/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDKInterface.php index b8605e08b..d81323bf3 100644 --- a/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Finances. @@ -40,8 +39,6 @@ interface FinancesSDKInterface /** * Operation listFinancialEventGroups. * - * @param AccessToken $accessToken - * @param string $region * @param int $max_results_per_page The maximum number of results to return per page. (optional, default to 100) * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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) @@ -52,29 +49,11 @@ interface FinancesSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventGroupsResponse */ - public function listFinancialEventGroups(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $financial_event_group_started_before = null, ?\DateTimeInterface $financial_event_group_started_after = null, ?string $next_token = null); - - /** - * Create request for operation 'listFinancialEventGroups'. - * - * @param AccessToken $accessToken - * @param string $region - * @param int $max_results_per_page The maximum number of results to return per page. (optional, default to 100) - * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function listFinancialEventGroupsRequest(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $financial_event_group_started_before = null, ?\DateTimeInterface $financial_event_group_started_after = null, ?string $next_token = null) : RequestInterface; + public function listFinancialEventGroups(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $financial_event_group_started_before = null, ?\DateTimeInterface $financial_event_group_started_after = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventGroupsResponse; /** * Operation listFinancialEvents. * - * @param AccessToken $accessToken - * @param string $region * @param int $max_results_per_page The maximum number of results to return per page. (optional, default to 100) * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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) @@ -85,29 +64,11 @@ public function listFinancialEventGroupsRequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse */ - public function listFinancialEvents(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $posted_after = null, ?\DateTimeInterface $posted_before = null, ?string $next_token = null); - - /** - * Create request for operation 'listFinancialEvents'. - * - * @param AccessToken $accessToken - * @param string $region - * @param int $max_results_per_page The maximum number of results to return per page. (optional, default to 100) - * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function listFinancialEventsRequest(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $posted_after = null, ?\DateTimeInterface $posted_before = null, ?string $next_token = null) : RequestInterface; + public function listFinancialEvents(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $posted_after = null, ?\DateTimeInterface $posted_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse; /** * Operation listFinancialEventsByGroupId. * - * @param AccessToken $accessToken - * @param string $region * @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. (optional, default to 100) * @param null|string $next_token A string token returned in the response of your previous request. (optional) @@ -117,28 +78,11 @@ public function listFinancialEventsRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse */ - public function listFinancialEventsByGroupId(AccessToken $accessToken, string $region, string $event_group_id, int $max_results_per_page = 100, ?string $next_token = null); - - /** - * Create request for operation 'listFinancialEventsByGroupId'. - * - * @param AccessToken $accessToken - * @param string $region - * @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. (optional, default to 100) - * @param null|string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function listFinancialEventsByGroupIdRequest(AccessToken $accessToken, string $region, string $event_group_id, int $max_results_per_page = 100, ?string $next_token = null) : RequestInterface; + public function listFinancialEventsByGroupId(AccessToken $accessToken, string $region, string $event_group_id, int $max_results_per_page = 100, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse; /** * Operation listFinancialEventsByOrderId. * - * @param AccessToken $accessToken - * @param string $region * @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. (optional, default to 100) * @param null|string $next_token A string token returned in the response of your previous request. (optional) @@ -148,20 +92,5 @@ public function listFinancialEventsByGroupIdRequest(AccessToken $accessToken, st * * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse */ - public function listFinancialEventsByOrderId(AccessToken $accessToken, string $region, string $order_id, int $max_results_per_page = 100, ?string $next_token = null); - - /** - * Create request for operation 'listFinancialEventsByOrderId'. - * - * @param AccessToken $accessToken - * @param string $region - * @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. (optional, default to 100) - * @param null|string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function listFinancialEventsByOrderIdRequest(AccessToken $accessToken, string $region, string $order_id, int $max_results_per_page = 100, ?string $next_token = null) : RequestInterface; + public function listFinancialEventsByOrderId(AccessToken $accessToken, string $region, string $order_id, int $max_results_per_page = 100, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php b/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php index 8760980f7..4b543ec50 100644 --- a/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation getDefinitionsProductType. * + * @param AccessToken $accessToken + * @param string $region * @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 null|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) @@ -146,8 +148,6 @@ public function getDefinitionsProductType(AccessToken $accessToken, string $regi /** * Create request for operation 'getDefinitionsProductType'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -302,6 +302,8 @@ public function getDefinitionsProductTypeRequest(AccessToken $accessToken, strin /** * Operation searchDefinitionsProductTypes. * + * @param AccessToken $accessToken + * @param string $region * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) * @param null|string[] $keywords A comma-delimited list of keywords to search product types by. (optional) * @@ -398,8 +400,6 @@ public function searchDefinitionsProductTypes(AccessToken $accessToken, string $ /** * Create request for operation 'searchDefinitionsProductTypes'. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) * @param null|string[] $keywords A comma-delimited list of keywords to search product types by. (optional) * diff --git a/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDKInterface.php index 18d6c1f26..0e985d062 100644 --- a/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Product Type Definitions. @@ -32,8 +31,6 @@ interface ProductTypesDefinitionsSDKInterface /** * Operation getDefinitionsProductType. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -47,32 +44,11 @@ interface ProductTypesDefinitionsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeDefinition */ - public function getDefinitionsProductType(AccessToken $accessToken, string $region, string $product_type, array $marketplace_ids, ?string $seller_id = null, string $product_type_version = 'LATEST', string $requirements = 'LISTING', string $requirements_enforced = 'ENFORCED', string $locale = 'DEFAULT'); - - /** - * Create request for operation 'getDefinitionsProductType'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 RequestInterface - */ - public function getDefinitionsProductTypeRequest(AccessToken $accessToken, string $region, string $product_type, array $marketplace_ids, ?string $seller_id = null, string $product_type_version = 'LATEST', string $requirements = 'LISTING', string $requirements_enforced = 'ENFORCED', string $locale = 'DEFAULT') : RequestInterface; + public function getDefinitionsProductType(AccessToken $accessToken, string $region, string $product_type, array $marketplace_ids, ?string $seller_id = null, string $product_type_version = 'LATEST', string $requirements = 'LISTING', string $requirements_enforced = 'ENFORCED', string $locale = 'DEFAULT') : \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeDefinition; /** * Operation searchDefinitionsProductTypes. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) * @param null|string[] $keywords A comma-delimited list of keywords to search product types by. (optional) * @@ -81,19 +57,5 @@ public function getDefinitionsProductTypeRequest(AccessToken $accessToken, strin * * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeList */ - public function searchDefinitionsProductTypes(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $keywords = null); - - /** - * Create request for operation 'searchDefinitionsProductTypes'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param null|string[] $keywords A comma-delimited list of keywords to search product types by. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function searchDefinitionsProductTypesRequest(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $keywords = null) : RequestInterface; + public function searchDefinitionsProductTypes(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $keywords = null) : \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeList; } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php index c060ef876..cf45ea093 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php @@ -144,8 +144,6 @@ public function getItemEligibilityPreview(AccessToken $accessToken, string $regi /** * Create request for operation 'getItemEligibilityPreview'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDKInterface.php index 3d8bc71f3..9adcde791 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for FBA Inbound Eligibilty. @@ -28,8 +27,6 @@ interface FBAInboundSDKInterface /** * Operation getItemEligibilityPreview. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) @@ -39,20 +36,5 @@ interface FBAInboundSDKInterface * * @return \AmazonPHP\SellingPartner\Model\FBAInbound\GetItemEligibilityPreviewResponse */ - public function getItemEligibilityPreview(AccessToken $accessToken, string $region, string $asin, string $program, ?array $marketplace_ids = null); - - /** - * Create request for operation 'getItemEligibilityPreview'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getItemEligibilityPreviewRequest(AccessToken $accessToken, string $region, string $asin, string $program, ?array $marketplace_ids = null) : RequestInterface; + public function getItemEligibilityPreview(AccessToken $accessToken, string $region, string $asin, string $program, ?array $marketplace_ids = null) : \AmazonPHP\SellingPartner\Model\FBAInbound\GetItemEligibilityPreviewResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php index cc94d0c4d..98befd78c 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php @@ -144,8 +144,6 @@ public function confirmPreorder(AccessToken $accessToken, string $region, string /** * Create request for operation 'confirmPreorder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \DateTimeInterface $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) @@ -367,8 +365,6 @@ public function confirmTransport(AccessToken $accessToken, string $region, strin /** * Create request for operation 'confirmTransport'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -560,8 +556,6 @@ public function createInboundShipment(AccessToken $accessToken, string $region, /** * Create request for operation 'createInboundShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body (required) * @@ -767,8 +761,6 @@ public function createInboundShipmentPlan(AccessToken $accessToken, string $regi /** * Create request for operation 'createInboundShipmentPlan'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -958,8 +950,6 @@ public function estimateTransport(AccessToken $accessToken, string $region, stri /** * Create request for operation 'estimateTransport'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1150,8 +1140,6 @@ public function getBillOfLading(AccessToken $accessToken, string $region, string /** * Create request for operation 'getBillOfLading'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1344,8 +1332,6 @@ public function getInboundGuidance(AccessToken $accessToken, string $region, str /** * Create request for operation 'getInboundGuidance'. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param null|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 null|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) @@ -1569,8 +1555,6 @@ public function getLabels(AccessToken $accessToken, string $region, string $ship /** * Create request for operation 'getLabels'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -1842,8 +1826,6 @@ public function getPreorderInfo(AccessToken $accessToken, string $region, string /** * Create request for operation 'getPreorderInfo'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -2052,8 +2034,6 @@ public function getPrepInstructions(AccessToken $accessToken, string $region, st /** * Create request for operation 'getPrepInstructions'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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 null|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) @@ -2274,8 +2254,6 @@ public function getShipmentItems(AccessToken $accessToken, string $region, strin /** * Create request for operation 'getShipmentItems'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|\DateTimeInterface $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) @@ -2509,8 +2487,6 @@ public function getShipmentItemsByShipmentId(AccessToken $accessToken, string $r /** * Create request for operation 'getShipmentItemsByShipmentId'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -2723,8 +2699,6 @@ public function getShipments(AccessToken $accessToken, string $region, string $q /** * Create request for operation 'getShipments'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -2975,8 +2949,6 @@ public function getTransportDetails(AccessToken $accessToken, string $region, st /** * Create request for operation 'getTransportDetails'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -3168,8 +3140,6 @@ public function putTransportDetails(AccessToken $accessToken, string $region, st /** * Create request for operation 'putTransportDetails'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body (required) * @@ -3376,8 +3346,6 @@ public function updateInboundShipment(AccessToken $accessToken, string $region, /** * Create request for operation 'updateInboundShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body (required) * @@ -3583,8 +3551,6 @@ public function voidTransport(AccessToken $accessToken, string $region, string $ /** * Create request for operation 'voidTransport'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDKInterface.php index 8472644d4..af3532d96 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Fulfillment Inbound. @@ -92,8 +91,6 @@ interface FulfillmentInboundSDKInterface /** * Operation confirmPreorder. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \DateTimeInterface $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) @@ -103,28 +100,11 @@ interface FulfillmentInboundSDKInterface * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmPreorderResponse */ - public function confirmPreorder(AccessToken $accessToken, string $region, string $shipment_id, \DateTimeInterface $need_by_date, string $marketplace_id); - - /** - * Create request for operation 'confirmPreorder'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \DateTimeInterface $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 RequestInterface - */ - public function confirmPreorderRequest(AccessToken $accessToken, string $region, string $shipment_id, \DateTimeInterface $need_by_date, string $marketplace_id) : RequestInterface; + public function confirmPreorder(AccessToken $accessToken, string $region, string $shipment_id, \DateTimeInterface $need_by_date, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmPreorderResponse; /** * Operation confirmTransport. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws ApiException on non-2xx response @@ -132,26 +112,11 @@ public function confirmPreorderRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmTransportResponse */ - public function confirmTransport(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'confirmTransport'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function confirmTransportRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function confirmTransport(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmTransportResponse; /** * Operation createInboundShipment. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body body (required) * @@ -160,27 +125,11 @@ public function confirmTransportRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse */ - public function createInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body); - - /** - * Create request for operation 'createInboundShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createInboundShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body) : RequestInterface; + public function createInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse; /** * Operation createInboundShipmentPlan. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body body (required) * * @throws ApiException on non-2xx response @@ -188,26 +137,11 @@ public function createInboundShipmentRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanResponse */ - public function createInboundShipmentPlan(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body); - - /** - * Create request for operation 'createInboundShipmentPlan'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createInboundShipmentPlanRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body) : RequestInterface; + public function createInboundShipmentPlan(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanResponse; /** * Operation estimateTransport. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws ApiException on non-2xx response @@ -215,26 +149,11 @@ public function createInboundShipmentPlanRequest(AccessToken $accessToken, strin * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\EstimateTransportResponse */ - public function estimateTransport(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'estimateTransport'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function estimateTransportRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function estimateTransport(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\EstimateTransportResponse; /** * Operation getBillOfLading. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws ApiException on non-2xx response @@ -242,26 +161,11 @@ public function estimateTransportRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetBillOfLadingResponse */ - public function getBillOfLading(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'getBillOfLading'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getBillOfLadingRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function getBillOfLading(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetBillOfLadingResponse; /** * Operation getInboundGuidance. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param null|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 null|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) @@ -271,28 +175,11 @@ public function getBillOfLadingRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetInboundGuidanceResponse */ - public function getInboundGuidance(AccessToken $accessToken, string $region, string $marketplace_id, ?array $seller_sku_list = null, ?array $asin_list = null); - - /** - * Create request for operation 'getInboundGuidance'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param null|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 null|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 RequestInterface - */ - public function getInboundGuidanceRequest(AccessToken $accessToken, string $region, string $marketplace_id, ?array $seller_sku_list = null, ?array $asin_list = null) : RequestInterface; + public function getInboundGuidance(AccessToken $accessToken, string $region, string $marketplace_id, ?array $seller_sku_list = null, ?array $asin_list = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetInboundGuidanceResponse; /** * Operation getLabels. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -307,33 +194,11 @@ public function getInboundGuidanceRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetLabelsResponse */ - public function getLabels(AccessToken $accessToken, string $region, string $shipment_id, string $page_type, string $label_type, ?int $number_of_packages = null, ?array $package_labels_to_print = null, ?int $number_of_pallets = null, ?int $page_size = null, ?int $page_start_index = null); - - /** - * Create request for operation 'getLabels'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|int $number_of_packages The number of packages in the shipment. (optional) - * @param null|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 null|int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) - * @param null|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 null|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 RequestInterface - */ - public function getLabelsRequest(AccessToken $accessToken, string $region, string $shipment_id, string $page_type, string $label_type, ?int $number_of_packages = null, ?array $package_labels_to_print = null, ?int $number_of_pallets = null, ?int $page_size = null, ?int $page_start_index = null) : RequestInterface; + public function getLabels(AccessToken $accessToken, string $region, string $shipment_id, string $page_type, string $label_type, ?int $number_of_packages = null, ?array $package_labels_to_print = null, ?int $number_of_pallets = null, ?int $page_size = null, ?int $page_start_index = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetLabelsResponse; /** * Operation getPreorderInfo. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -342,27 +207,11 @@ public function getLabelsRequest(AccessToken $accessToken, string $region, strin * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPreorderInfoResponse */ - public function getPreorderInfo(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id); - - /** - * Create request for operation 'getPreorderInfo'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getPreorderInfoRequest(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id) : RequestInterface; + public function getPreorderInfo(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPreorderInfoResponse; /** * Operation getPrepInstructions. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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 null|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) @@ -372,28 +221,11 @@ public function getPreorderInfoRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPrepInstructionsResponse */ - public function getPrepInstructions(AccessToken $accessToken, string $region, string $ship_to_country_code, ?array $seller_sku_list = null, ?array $asin_list = null); - - /** - * Create request for operation 'getPrepInstructions'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 null|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 RequestInterface - */ - public function getPrepInstructionsRequest(AccessToken $accessToken, string $region, string $ship_to_country_code, ?array $seller_sku_list = null, ?array $asin_list = null) : RequestInterface; + public function getPrepInstructions(AccessToken $accessToken, string $region, string $ship_to_country_code, ?array $seller_sku_list = null, ?array $asin_list = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPrepInstructionsResponse; /** * Operation getShipmentItems. * - * @param AccessToken $accessToken - * @param string $region * @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 null|\DateTimeInterface $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) @@ -405,30 +237,11 @@ public function getPrepInstructionsRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse */ - public function getShipmentItems(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null); - - /** - * Create request for operation 'getShipmentItems'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|\DateTimeInterface $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param null|\DateTimeInterface $last_updated_before A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param null|string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getShipmentItemsRequest(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null) : RequestInterface; + public function getShipmentItems(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse; /** * Operation getShipmentItemsByShipmentId. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -437,27 +250,11 @@ public function getShipmentItemsRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse */ - public function getShipmentItemsByShipmentId(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id); - - /** - * Create request for operation 'getShipmentItemsByShipmentId'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getShipmentItemsByShipmentIdRequest(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id) : RequestInterface; + public function getShipmentItemsByShipmentId(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse; /** * Operation getShipments. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -471,32 +268,11 @@ public function getShipmentItemsByShipmentIdRequest(AccessToken $accessToken, st * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentsResponse */ - public function getShipments(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?array $shipment_status_list = null, ?array $shipment_id_list = null, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null); - - /** - * Create request for operation 'getShipments'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 null|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 null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getShipmentsRequest(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?array $shipment_status_list = null, ?array $shipment_id_list = null, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null) : RequestInterface; + public function getShipments(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?array $shipment_status_list = null, ?array $shipment_id_list = null, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentsResponse; /** * Operation getTransportDetails. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws ApiException on non-2xx response @@ -504,26 +280,11 @@ public function getShipmentsRequest(AccessToken $accessToken, string $region, st * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetTransportDetailsResponse */ - public function getTransportDetails(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'getTransportDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getTransportDetailsRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function getTransportDetails(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetTransportDetailsResponse; /** * Operation putTransportDetails. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body body (required) * @@ -532,27 +293,11 @@ public function getTransportDetailsRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsResponse */ - public function putTransportDetails(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body); - - /** - * Create request for operation 'putTransportDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function putTransportDetailsRequest(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body) : RequestInterface; + public function putTransportDetails(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsResponse; /** * Operation updateInboundShipment. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body body (required) * @@ -561,27 +306,11 @@ public function putTransportDetailsRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse */ - public function updateInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body); - - /** - * Create request for operation 'updateInboundShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateInboundShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body) : RequestInterface; + public function updateInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse; /** * Operation voidTransport. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * * @throws ApiException on non-2xx response @@ -589,18 +318,5 @@ public function updateInboundShipmentRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\VoidTransportResponse */ - public function voidTransport(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'voidTransport'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function voidTransportRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function voidTransport(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\VoidTransportResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php index 687189f7c..b8afcc06c 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation getInventorySummaries. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -146,8 +148,6 @@ public function getInventorySummaries(AccessToken $accessToken, string $region, /** * Create request for operation 'getInventorySummaries'. * - * @param AccessToken $accessToken - * @param string $region * @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) diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php index 1103fec43..6c1ce8d0e 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for FBA Inventory. @@ -28,8 +27,6 @@ interface FBAInventorySDKInterface /** * Operation getInventorySummaries. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -43,24 +40,5 @@ interface FBAInventorySDKInterface * * @return \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse */ - public function getInventorySummaries(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $next_token = null); - - /** - * Create request for operation 'getInventorySummaries'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $granularity_type The granularity type for the inventory aggregation level. (required) - * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) - * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) - * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) - * @param null|\DateTimeInterface $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 null|string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param null|string $next_token String token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getInventorySummariesRequest(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $next_token = null) : RequestInterface; + public function getInventorySummaries(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php index d744b027d..6507770f6 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php @@ -142,8 +142,6 @@ public function cancelFulfillmentOrder(AccessToken $accessToken, string $region, /** * Create request for operation 'cancelFulfillmentOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -338,8 +336,6 @@ public function createFulfillmentOrder(AccessToken $accessToken, string $region, /** * Create request for operation 'createFulfillmentOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -530,8 +526,6 @@ public function createFulfillmentReturn(AccessToken $accessToken, string $region /** * Create request for operation 'createFulfillmentReturn'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body (required) * @@ -739,8 +733,6 @@ public function getFeatureInventory(AccessToken $accessToken, string $region, st /** * Create request for operation 'getFeatureInventory'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -958,8 +950,6 @@ public function getFeatureSKU(AccessToken $accessToken, string $region, string $ /** * Create request for operation 'getFeatureSKU'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -1181,8 +1171,6 @@ public function getFeatures(AccessToken $accessToken, string $region, string $ma /** * Create request for operation 'getFeatures'. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The marketplace for which to return the list of features. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1373,8 +1361,6 @@ public function getFulfillmentOrder(AccessToken $accessToken, string $region, st /** * Create request for operation 'getFulfillmentOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1569,8 +1555,6 @@ public function getFulfillmentPreview(AccessToken $accessToken, string $region, /** * Create request for operation 'getFulfillmentPreview'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1760,8 +1744,6 @@ public function getPackageTrackingDetails(AccessToken $accessToken, string $regi /** * Create request for operation 'getPackageTrackingDetails'. * - * @param AccessToken $accessToken - * @param string $region * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -2150,8 +2132,6 @@ public function listReturnReasonCodes(AccessToken $accessToken, string $region, /** * Create request for operation 'listReturnReasonCodes'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) @@ -2376,8 +2356,6 @@ public function updateFulfillmentOrder(AccessToken $accessToken, string $region, /** * Create request for operation 'updateFulfillmentOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body (required) * diff --git a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php index 9c45c8494..1d01bbafd 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner APIs for Fulfillment Outbound. @@ -72,8 +71,6 @@ interface FulfillmentOutboundSDKInterface /** * Operation cancelFulfillmentOrder. * - * @param AccessToken $accessToken - * @param string $region * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws ApiException on non-2xx response @@ -81,26 +78,11 @@ interface FulfillmentOutboundSDKInterface * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CancelFulfillmentOrderResponse */ - public function cancelFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id); - - /** - * Create request for operation 'cancelFulfillmentOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function cancelFulfillmentOrderRequest(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id) : RequestInterface; + public function cancelFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CancelFulfillmentOrderResponse; /** * Operation createFulfillmentOrder. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body body (required) * * @throws ApiException on non-2xx response @@ -108,26 +90,11 @@ public function cancelFulfillmentOrderRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderResponse */ - public function createFulfillmentOrder(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body); - - /** - * Create request for operation 'createFulfillmentOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createFulfillmentOrderRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body) : RequestInterface; + public function createFulfillmentOrder(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderResponse; /** * Operation createFulfillmentReturn. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body body (required) * @@ -136,27 +103,11 @@ public function createFulfillmentOrderRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnResponse */ - public function createFulfillmentReturn(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body); - - /** - * Create request for operation 'createFulfillmentReturn'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createFulfillmentReturnRequest(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body) : RequestInterface; + public function createFulfillmentReturn(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnResponse; /** * Operation getFeatureInventory. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -166,28 +117,11 @@ public function createFulfillmentReturnRequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureInventoryResponse */ - public function getFeatureInventory(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, ?string $next_token = null); - - /** - * Create request for operation 'getFeatureInventory'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 RequestInterface - */ - public function getFeatureInventoryRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, ?string $next_token = null) : RequestInterface; + public function getFeatureInventory(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureInventoryResponse; /** * Operation getFeatureSKU. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -197,28 +131,11 @@ public function getFeatureInventoryRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureSkuResponse */ - public function getFeatureSKU(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, string $seller_sku); - - /** - * Create request for operation 'getFeatureSKU'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getFeatureSKURequest(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, string $seller_sku) : RequestInterface; + public function getFeatureSKU(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, string $seller_sku) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureSkuResponse; /** * Operation getFeatures. * - * @param AccessToken $accessToken - * @param string $region * @param string $marketplace_id The marketplace for which to return the list of features. (required) * * @throws ApiException on non-2xx response @@ -226,26 +143,11 @@ public function getFeatureSKURequest(AccessToken $accessToken, string $region, s * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeaturesResponse */ - public function getFeatures(AccessToken $accessToken, string $region, string $marketplace_id); - - /** - * Create request for operation 'getFeatures'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $marketplace_id The marketplace for which to return the list of features. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getFeaturesRequest(AccessToken $accessToken, string $region, string $marketplace_id) : RequestInterface; + public function getFeatures(AccessToken $accessToken, string $region, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeaturesResponse; /** * Operation getFulfillmentOrder. * - * @param AccessToken $accessToken - * @param string $region * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws ApiException on non-2xx response @@ -253,26 +155,11 @@ public function getFeaturesRequest(AccessToken $accessToken, string $region, str * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentOrderResponse */ - public function getFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id); - - /** - * Create request for operation 'getFulfillmentOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getFulfillmentOrderRequest(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id) : RequestInterface; + public function getFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentOrderResponse; /** * Operation getFulfillmentPreview. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body body (required) * * @throws ApiException on non-2xx response @@ -280,26 +167,11 @@ public function getFulfillmentOrderRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewResponse */ - public function getFulfillmentPreview(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body); - - /** - * Create request for operation 'getFulfillmentPreview'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getFulfillmentPreviewRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body) : RequestInterface; + public function getFulfillmentPreview(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewResponse; /** * Operation getPackageTrackingDetails. * - * @param AccessToken $accessToken - * @param string $region * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) * * @throws ApiException on non-2xx response @@ -307,20 +179,7 @@ public function getFulfillmentPreviewRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetPackageTrackingDetailsResponse */ - public function getPackageTrackingDetails(AccessToken $accessToken, string $region, int $package_number); - - /** - * Create request for operation 'getPackageTrackingDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getPackageTrackingDetailsRequest(AccessToken $accessToken, string $region, int $package_number) : RequestInterface; + public function getPackageTrackingDetails(AccessToken $accessToken, string $region, int $package_number) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetPackageTrackingDetailsResponse; /** * Operation listAllFulfillmentOrders. @@ -335,27 +194,11 @@ public function getPackageTrackingDetailsRequest(AccessToken $accessToken, strin * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListAllFulfillmentOrdersResponse */ - public function listAllFulfillmentOrders(AccessToken $accessToken, string $region, ?\DateTimeInterface $query_start_date = null, ?string $next_token = null); - - /** - * Create request for operation 'listAllFulfillmentOrders'. - * - * @param AccessToken $accessToken - * @param string $region - * @param null|\DateTimeInterface $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. (optional) - * @param null|string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function listAllFulfillmentOrdersRequest(AccessToken $accessToken, string $region, ?\DateTimeInterface $query_start_date = null, ?string $next_token = null) : RequestInterface; + public function listAllFulfillmentOrders(AccessToken $accessToken, string $region, ?\DateTimeInterface $query_start_date = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListAllFulfillmentOrdersResponse; /** * Operation listReturnReasonCodes. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) @@ -366,29 +209,11 @@ public function listAllFulfillmentOrdersRequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListReturnReasonCodesResponse */ - public function listReturnReasonCodes(AccessToken $accessToken, string $region, string $seller_sku, string $language, ?string $marketplace_id = null, ?string $seller_fulfillment_order_id = null); - - /** - * Create request for operation 'listReturnReasonCodes'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) - * @param null|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 RequestInterface - */ - public function listReturnReasonCodesRequest(AccessToken $accessToken, string $region, string $seller_sku, string $language, ?string $marketplace_id = null, ?string $seller_fulfillment_order_id = null) : RequestInterface; + public function listReturnReasonCodes(AccessToken $accessToken, string $region, string $seller_sku, string $language, ?string $marketplace_id = null, ?string $seller_fulfillment_order_id = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListReturnReasonCodesResponse; /** * Operation updateFulfillmentOrder. * - * @param AccessToken $accessToken - * @param string $region * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body body (required) * @@ -397,19 +222,5 @@ public function listReturnReasonCodesRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderResponse */ - public function updateFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body); - - /** - * Create request for operation 'updateFulfillmentOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateFulfillmentOrderRequest(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body) : RequestInterface; + public function updateFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php b/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php index 937437789..112999989 100644 --- a/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php @@ -137,8 +137,6 @@ public function cancelFeed(AccessToken $accessToken, string $region, string $fee /** * Create request for operation 'cancelFeed'. * - * @param AccessToken $accessToken - * @param string $region * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -329,8 +327,6 @@ public function createFeed(AccessToken $accessToken, string $region, \AmazonPHP\ /** * Create request for operation 'createFeed'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -520,8 +516,6 @@ public function createFeedDocument(AccessToken $accessToken, string $region, \Am /** * Create request for operation 'createFeedDocument'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -711,8 +705,6 @@ public function getFeed(AccessToken $accessToken, string $region, string $feed_i /** * Create request for operation 'getFeed'. * - * @param AccessToken $accessToken - * @param string $region * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -903,8 +895,6 @@ public function getFeedDocument(AccessToken $accessToken, string $region, string /** * Create request for operation 'getFeedDocument'. * - * @param AccessToken $accessToken - * @param string $region * @param string $feed_document_id The identifier of the feed document. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1101,8 +1091,6 @@ public function getFeeds(AccessToken $accessToken, string $region, ?array $feed_ /** * Create request for operation 'getFeeds'. * - * @param AccessToken $accessToken - * @param string $region * @param null|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 null|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) diff --git a/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDKInterface.php index 887a19930..a1e9017c0 100644 --- a/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Feeds. @@ -48,8 +47,6 @@ interface FeedsSDKInterface /** * Operation cancelFeed. * - * @param AccessToken $accessToken - * @param string $region * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * * @throws ApiException on non-2xx response @@ -57,24 +54,9 @@ interface FeedsSDKInterface */ public function cancelFeed(AccessToken $accessToken, string $region, string $feed_id); - /** - * Create request for operation 'cancelFeed'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function cancelFeedRequest(AccessToken $accessToken, string $region, string $feed_id) : RequestInterface; - /** * Operation createFeed. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body body (required) * * @throws ApiException on non-2xx response @@ -82,26 +64,11 @@ public function cancelFeedRequest(AccessToken $accessToken, string $region, stri * * @return \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedResponse */ - public function createFeed(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body); - - /** - * Create request for operation 'createFeed'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createFeedRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body) : RequestInterface; + public function createFeed(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body) : \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedResponse; /** * Operation createFeedDocument. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body body (required) * * @throws ApiException on non-2xx response @@ -109,26 +76,11 @@ public function createFeedRequest(AccessToken $accessToken, string $region, \Ama * * @return \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentResponse */ - public function createFeedDocument(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body); - - /** - * Create request for operation 'createFeedDocument'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createFeedDocumentRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body) : RequestInterface; + public function createFeedDocument(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body) : \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentResponse; /** * Operation getFeed. * - * @param AccessToken $accessToken - * @param string $region * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * * @throws ApiException on non-2xx response @@ -136,26 +88,11 @@ public function createFeedDocumentRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\Feeds\Feed */ - public function getFeed(AccessToken $accessToken, string $region, string $feed_id); - - /** - * Create request for operation 'getFeed'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getFeedRequest(AccessToken $accessToken, string $region, string $feed_id) : RequestInterface; + public function getFeed(AccessToken $accessToken, string $region, string $feed_id) : \AmazonPHP\SellingPartner\Model\Feeds\Feed; /** * Operation getFeedDocument. * - * @param AccessToken $accessToken - * @param string $region * @param string $feed_document_id The identifier of the feed document. (required) * * @throws ApiException on non-2xx response @@ -163,26 +100,11 @@ public function getFeedRequest(AccessToken $accessToken, string $region, string * * @return \AmazonPHP\SellingPartner\Model\Feeds\FeedDocument */ - public function getFeedDocument(AccessToken $accessToken, string $region, string $feed_document_id); - - /** - * Create request for operation 'getFeedDocument'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $feed_document_id The identifier of the feed document. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getFeedDocumentRequest(AccessToken $accessToken, string $region, string $feed_document_id) : RequestInterface; + public function getFeedDocument(AccessToken $accessToken, string $region, string $feed_document_id) : \AmazonPHP\SellingPartner\Model\Feeds\FeedDocument; /** * Operation getFeeds. * - * @param AccessToken $accessToken - * @param string $region * @param null|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 null|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) @@ -196,24 +118,5 @@ public function getFeedDocumentRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Feeds\GetFeedsResponse */ - public function getFeeds(AccessToken $accessToken, string $region, ?array $feed_types = null, ?array $marketplace_ids = null, int $page_size = 10, ?array $processing_statuses = null, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null); - - /** - * Create request for operation 'getFeeds'. - * - * @param AccessToken $accessToken - * @param string $region - * @param null|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 null|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 null|string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) - * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|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 RequestInterface - */ - public function getFeedsRequest(AccessToken $accessToken, string $region, ?array $feed_types = null, ?array $marketplace_ids = null, int $page_size = 10, ?array $processing_statuses = null, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null) : RequestInterface; + public function getFeeds(AccessToken $accessToken, string $region, ?array $feed_types = null, ?array $marketplace_ids = null, int $page_size = 10, ?array $processing_statuses = null, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Feeds\GetFeedsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php b/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php index 7186c3b39..884c3ab32 100644 --- a/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php @@ -143,8 +143,6 @@ public function getMyFeesEstimateForASIN(AccessToken $accessToken, string $regio /** * Create request for operation 'getMyFeesEstimateForASIN'. * - * @param AccessToken $accessToken - * @param string $region * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * @param \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body (required) * @@ -351,8 +349,6 @@ public function getMyFeesEstimateForSKU(AccessToken $accessToken, string $region /** * Create request for operation 'getMyFeesEstimateForSKU'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body (required) * @@ -560,8 +556,6 @@ public function getMyFeesEstimates(AccessToken $accessToken, string $region, arr /** * Create request for operation 'getMyFeesEstimates'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateByIdRequest[] $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDKInterface.php index cb2e86435..3770a51b6 100644 --- a/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Product Fees. @@ -36,8 +35,6 @@ interface ProductFeesSDKInterface /** * Operation getMyFeesEstimateForASIN. * - * @param AccessToken $accessToken - * @param string $region * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * @param \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body body (required) * @@ -46,27 +43,11 @@ interface ProductFeesSDKInterface * * @return \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse */ - public function getMyFeesEstimateForASIN(AccessToken $accessToken, string $region, string $asin, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body); - - /** - * Create request for operation 'getMyFeesEstimateForASIN'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getMyFeesEstimateForASINRequest(AccessToken $accessToken, string $region, string $asin, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body) : RequestInterface; + public function getMyFeesEstimateForASIN(AccessToken $accessToken, string $region, string $asin, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body) : \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse; /** * Operation getMyFeesEstimateForSKU. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body body (required) * @@ -75,27 +56,11 @@ public function getMyFeesEstimateForASINRequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse */ - public function getMyFeesEstimateForSKU(AccessToken $accessToken, string $region, string $seller_sku, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body); - - /** - * Create request for operation 'getMyFeesEstimateForSKU'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getMyFeesEstimateForSKURequest(AccessToken $accessToken, string $region, string $seller_sku, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body) : RequestInterface; + public function getMyFeesEstimateForSKU(AccessToken $accessToken, string $region, string $seller_sku, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body) : \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse; /** * Operation getMyFeesEstimates. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateByIdRequest[] $body body (required) * * @throws ApiException on non-2xx response @@ -103,18 +68,5 @@ public function getMyFeesEstimateForSKURequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateResult[] */ - public function getMyFeesEstimates(AccessToken $accessToken, string $region, array $body); - - /** - * Create request for operation 'getMyFeesEstimates'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateByIdRequest[] $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getMyFeesEstimatesRequest(AccessToken $accessToken, string $region, array $body) : RequestInterface; + public function getMyFeesEstimates(AccessToken $accessToken, string $region, array $body) : array; } diff --git a/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php b/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php index 78e34906f..823e9c318 100644 --- a/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation deleteListingsItem. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -143,8 +145,6 @@ public function deleteListingsItem(AccessToken $accessToken, string $region, str /** * Create request for operation 'deleteListingsItem'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -278,6 +278,8 @@ public function deleteListingsItemRequest(AccessToken $accessToken, string $regi /** * Operation getListingsItem. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -377,8 +379,6 @@ public function getListingsItem(AccessToken $accessToken, string $region, string /** * Create request for operation 'getListingsItem'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -521,6 +521,8 @@ public function getListingsItemRequest(AccessToken $accessToken, string $region, /** * Operation patchListingsItem. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -620,8 +622,6 @@ public function patchListingsItem(AccessToken $accessToken, string $region, stri /** * Create request for operation 'patchListingsItem'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -770,6 +770,8 @@ public function patchListingsItemRequest(AccessToken $accessToken, string $regio /** * Operation putListingsItem. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -869,8 +871,6 @@ public function putListingsItem(AccessToken $accessToken, string $region, string /** * Create request for operation 'putListingsItem'. * - * @param AccessToken $accessToken - * @param string $region * @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) diff --git a/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDKInterface.php index 93a65f440..c78eb3b83 100644 --- a/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Listings Items. @@ -40,8 +39,6 @@ interface ListingsItemsSDKInterface /** * Operation deleteListingsItem. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -52,29 +49,11 @@ interface ListingsItemsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse */ - public function deleteListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null); - - /** - * Create request for operation 'deleteListingsItem'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 RequestInterface - */ - public function deleteListingsItemRequest(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null) : RequestInterface; + public function deleteListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse; /** * Operation getListingsItem. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -86,30 +65,11 @@ public function deleteListingsItemRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\ListingsItems\Item */ - public function getListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null, ?array $included_data = null); - - /** - * Create request for operation 'getListingsItem'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 null|string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getListingsItemRequest(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null, ?array $included_data = null) : RequestInterface; + public function getListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null, ?array $included_data = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\Item; /** * Operation patchListingsItem. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -121,30 +81,11 @@ public function getListingsItemRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse */ - public function patchListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPatchRequest $body, ?string $issue_locale = null); - - /** - * Create request for operation 'patchListingsItem'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param null|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 RequestInterface - */ - public function patchListingsItemRequest(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPatchRequest $body, ?string $issue_locale = null) : RequestInterface; + public function patchListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPatchRequest $body, ?string $issue_locale = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse; /** * Operation putListingsItem. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -156,22 +97,5 @@ public function patchListingsItemRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse */ - public function putListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPutRequest $body, ?string $issue_locale = null); - - /** - * Create request for operation 'putListingsItem'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param null|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 RequestInterface - */ - public function putListingsItemRequest(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPutRequest $body, ?string $issue_locale = null) : RequestInterface; + public function putListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPutRequest $body, ?string $issue_locale = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php b/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php index 5527ffed9..3b54a0239 100644 --- a/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php @@ -142,8 +142,6 @@ public function cancelShipment(AccessToken $accessToken, string $region, string /** * Create request for operation 'cancelShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -338,8 +336,6 @@ public function cancelShipmentOld(AccessToken $accessToken, string $region, stri /** * Create request for operation 'cancelShipmentOld'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -534,8 +530,6 @@ public function createShipment(AccessToken $accessToken, string $region, \Amazon /** * Create request for operation 'createShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -725,8 +719,6 @@ public function getAdditionalSellerInputs(AccessToken $accessToken, string $regi /** * Create request for operation 'getAdditionalSellerInputs'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -916,8 +908,6 @@ public function getAdditionalSellerInputsOld(AccessToken $accessToken, string $r /** * Create request for operation 'getAdditionalSellerInputsOld'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1107,8 +1097,6 @@ public function getEligibleShipmentServices(AccessToken $accessToken, string $re /** * Create request for operation 'getEligibleShipmentServices'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1298,8 +1286,6 @@ public function getEligibleShipmentServicesOld(AccessToken $accessToken, string /** * Create request for operation 'getEligibleShipmentServicesOld'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1489,8 +1475,6 @@ public function getShipment(AccessToken $accessToken, string $region, string $sh /** * Create request for operation 'getShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDKInterface.php index bbab8892d..5e13ce83e 100644 --- a/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Merchant Fulfillment. @@ -56,8 +55,6 @@ interface MerchantFulfillmentSDKInterface /** * Operation cancelShipment. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) * * @throws ApiException on non-2xx response @@ -65,26 +62,11 @@ interface MerchantFulfillmentSDKInterface * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse */ - public function cancelShipment(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'cancelShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function cancelShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function cancelShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse; /** * Operation cancelShipmentOld. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) * * @throws ApiException on non-2xx response @@ -92,26 +74,11 @@ public function cancelShipmentRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse */ - public function cancelShipmentOld(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'cancelShipmentOld'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function cancelShipmentOldRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function cancelShipmentOld(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse; /** * Operation createShipment. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body body (required) * * @throws ApiException on non-2xx response @@ -119,26 +86,11 @@ public function cancelShipmentOldRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentResponse */ - public function createShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body); - - /** - * Create request for operation 'createShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createShipmentRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body) : RequestInterface; + public function createShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentResponse; /** * Operation getAdditionalSellerInputs. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body body (required) * * @throws ApiException on non-2xx response @@ -146,26 +98,11 @@ public function createShipmentRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse */ - public function getAdditionalSellerInputs(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body); - - /** - * Create request for operation 'getAdditionalSellerInputs'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getAdditionalSellerInputsRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body) : RequestInterface; + public function getAdditionalSellerInputs(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse; /** * Operation getAdditionalSellerInputsOld. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body body (required) * * @throws ApiException on non-2xx response @@ -173,26 +110,11 @@ public function getAdditionalSellerInputsRequest(AccessToken $accessToken, strin * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse */ - public function getAdditionalSellerInputsOld(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body); - - /** - * Create request for operation 'getAdditionalSellerInputsOld'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getAdditionalSellerInputsOldRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body) : RequestInterface; + public function getAdditionalSellerInputsOld(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse; /** * Operation getEligibleShipmentServices. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body body (required) * * @throws ApiException on non-2xx response @@ -200,26 +122,11 @@ public function getAdditionalSellerInputsOldRequest(AccessToken $accessToken, st * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse */ - public function getEligibleShipmentServices(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body); - - /** - * Create request for operation 'getEligibleShipmentServices'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getEligibleShipmentServicesRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body) : RequestInterface; + public function getEligibleShipmentServices(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse; /** * Operation getEligibleShipmentServicesOld. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body body (required) * * @throws ApiException on non-2xx response @@ -227,26 +134,11 @@ public function getEligibleShipmentServicesRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse */ - public function getEligibleShipmentServicesOld(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body); - - /** - * Create request for operation 'getEligibleShipmentServicesOld'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getEligibleShipmentServicesOldRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body) : RequestInterface; + public function getEligibleShipmentServicesOld(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse; /** * Operation getShipment. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) * * @throws ApiException on non-2xx response @@ -254,18 +146,5 @@ public function getEligibleShipmentServicesOldRequest(AccessToken $accessToken, * * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetShipmentResponse */ - public function getShipment(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'getShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function getShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetShipmentResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php b/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php index cd1e23ebe..379dac14f 100644 --- a/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation confirmCustomizationDetails. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body body (required) @@ -142,8 +144,6 @@ public function confirmCustomizationDetails(AccessToken $accessToken, string $re /** * Create request for operation 'confirmCustomizationDetails'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body (required) @@ -273,6 +273,8 @@ public function confirmCustomizationDetailsRequest(AccessToken $accessToken, str /** * Operation createAmazonMotors. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body body (required) @@ -370,8 +372,6 @@ public function createAmazonMotors(AccessToken $accessToken, string $region, str /** * Create request for operation 'createAmazonMotors'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body (required) @@ -501,6 +501,8 @@ public function createAmazonMotorsRequest(AccessToken $accessToken, string $regi /** * Operation createConfirmDeliveryDetails. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body body (required) @@ -598,8 +600,6 @@ public function createConfirmDeliveryDetails(AccessToken $accessToken, string $r /** * Create request for operation 'createConfirmDeliveryDetails'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body (required) @@ -729,6 +729,8 @@ public function createConfirmDeliveryDetailsRequest(AccessToken $accessToken, st /** * Operation createConfirmOrderDetails. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body body (required) @@ -826,8 +828,6 @@ public function createConfirmOrderDetails(AccessToken $accessToken, string $regi /** * Create request for operation 'createConfirmOrderDetails'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body (required) @@ -957,6 +957,8 @@ public function createConfirmOrderDetailsRequest(AccessToken $accessToken, strin /** * Operation createConfirmServiceDetails. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body body (required) @@ -1054,8 +1056,6 @@ public function createConfirmServiceDetails(AccessToken $accessToken, string $re /** * Create request for operation 'createConfirmServiceDetails'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body (required) @@ -1185,6 +1185,8 @@ public function createConfirmServiceDetailsRequest(AccessToken $accessToken, str /** * Operation createDigitalAccessKey. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body body (required) @@ -1282,8 +1284,6 @@ public function createDigitalAccessKey(AccessToken $accessToken, string $region, /** * Create request for operation 'createDigitalAccessKey'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body (required) @@ -1413,6 +1413,8 @@ public function createDigitalAccessKeyRequest(AccessToken $accessToken, string $ /** * Operation createLegalDisclosure. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body body (required) @@ -1510,8 +1512,6 @@ public function createLegalDisclosure(AccessToken $accessToken, string $region, /** * Create request for operation 'createLegalDisclosure'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body (required) @@ -1641,6 +1641,8 @@ public function createLegalDisclosureRequest(AccessToken $accessToken, string $r /** * Operation createNegativeFeedbackRemoval. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -1737,8 +1739,6 @@ public function createNegativeFeedbackRemoval(AccessToken $accessToken, string $ /** * Create request for operation 'createNegativeFeedbackRemoval'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -1852,6 +1852,8 @@ public function createNegativeFeedbackRemovalRequest(AccessToken $accessToken, s /** * Operation createUnexpectedProblem. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body body (required) @@ -1949,8 +1951,6 @@ public function createUnexpectedProblem(AccessToken $accessToken, string $region /** * Create request for operation 'createUnexpectedProblem'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body (required) @@ -2080,6 +2080,8 @@ public function createUnexpectedProblemRequest(AccessToken $accessToken, string /** * Operation createWarranty. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body body (required) @@ -2177,8 +2179,6 @@ public function createWarranty(AccessToken $accessToken, string $region, string /** * Create request for operation 'createWarranty'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body (required) @@ -2308,6 +2308,8 @@ public function createWarrantyRequest(AccessToken $accessToken, string $region, /** * Operation getAttributes. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -2404,8 +2406,6 @@ public function getAttributes(AccessToken $accessToken, string $region, string $ /** * Create request for operation 'getAttributes'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -2519,6 +2519,8 @@ public function getAttributesRequest(AccessToken $accessToken, string $region, s /** * Operation getMessagingActionsForOrder. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -2615,8 +2617,6 @@ public function getMessagingActionsForOrder(AccessToken $accessToken, string $re /** * Create request for operation 'getMessagingActionsForOrder'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -2730,6 +2730,8 @@ public function getMessagingActionsForOrderRequest(AccessToken $accessToken, str /** * Operation sendInvoice. * + * @param AccessToken $accessToken + * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body body (required) @@ -2827,8 +2829,6 @@ public function sendInvoice(AccessToken $accessToken, string $region, string $am /** * Create request for operation 'sendInvoice'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body (required) diff --git a/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDKInterface.php index fb230ff3d..b31d83986 100644 --- a/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Messaging. @@ -76,8 +75,6 @@ interface MessagingSDKInterface /** * Operation confirmCustomizationDetails. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body body (required) @@ -87,28 +84,11 @@ interface MessagingSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsResponse */ - public function confirmCustomizationDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body); - - /** - * Create request for operation 'confirmCustomizationDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function confirmCustomizationDetailsRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body) : RequestInterface; + public function confirmCustomizationDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsResponse; /** * Operation createAmazonMotors. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body body (required) @@ -118,28 +98,11 @@ public function confirmCustomizationDetailsRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsResponse */ - public function createAmazonMotors(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body); - - /** - * Create request for operation 'createAmazonMotors'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createAmazonMotorsRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body) : RequestInterface; + public function createAmazonMotors(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsResponse; /** * Operation createConfirmDeliveryDetails. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body body (required) @@ -149,28 +112,11 @@ public function createAmazonMotorsRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsResponse */ - public function createConfirmDeliveryDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body); - - /** - * Create request for operation 'createConfirmDeliveryDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createConfirmDeliveryDetailsRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body) : RequestInterface; + public function createConfirmDeliveryDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsResponse; /** * Operation createConfirmOrderDetails. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body body (required) @@ -180,28 +126,11 @@ public function createConfirmDeliveryDetailsRequest(AccessToken $accessToken, st * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsResponse */ - public function createConfirmOrderDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body); - - /** - * Create request for operation 'createConfirmOrderDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createConfirmOrderDetailsRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body) : RequestInterface; + public function createConfirmOrderDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsResponse; /** * Operation createConfirmServiceDetails. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body body (required) @@ -211,28 +140,11 @@ public function createConfirmOrderDetailsRequest(AccessToken $accessToken, strin * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsResponse */ - public function createConfirmServiceDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body); - - /** - * Create request for operation 'createConfirmServiceDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createConfirmServiceDetailsRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body) : RequestInterface; + public function createConfirmServiceDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsResponse; /** * Operation createDigitalAccessKey. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body body (required) @@ -242,28 +154,11 @@ public function createConfirmServiceDetailsRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyResponse */ - public function createDigitalAccessKey(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body); - - /** - * Create request for operation 'createDigitalAccessKey'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createDigitalAccessKeyRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body) : RequestInterface; + public function createDigitalAccessKey(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyResponse; /** * Operation createLegalDisclosure. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body body (required) @@ -273,28 +168,11 @@ public function createDigitalAccessKeyRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureResponse */ - public function createLegalDisclosure(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body); - - /** - * Create request for operation 'createLegalDisclosure'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createLegalDisclosureRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body) : RequestInterface; + public function createLegalDisclosure(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureResponse; /** * Operation createNegativeFeedbackRemoval. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -303,27 +181,11 @@ public function createLegalDisclosureRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateNegativeFeedbackRemovalResponse */ - public function createNegativeFeedbackRemoval(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids); - - /** - * Create request for operation 'createNegativeFeedbackRemoval'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function createNegativeFeedbackRemovalRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : RequestInterface; + public function createNegativeFeedbackRemoval(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Messaging\CreateNegativeFeedbackRemovalResponse; /** * Operation createUnexpectedProblem. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body body (required) @@ -333,28 +195,11 @@ public function createNegativeFeedbackRemovalRequest(AccessToken $accessToken, s * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemResponse */ - public function createUnexpectedProblem(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body); - - /** - * Create request for operation 'createUnexpectedProblem'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createUnexpectedProblemRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body) : RequestInterface; + public function createUnexpectedProblem(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemResponse; /** * Operation createWarranty. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body body (required) @@ -364,28 +209,11 @@ public function createUnexpectedProblemRequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyResponse */ - public function createWarranty(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body); - - /** - * Create request for operation 'createWarranty'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createWarrantyRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body) : RequestInterface; + public function createWarranty(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyResponse; /** * Operation getAttributes. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -394,27 +222,11 @@ public function createWarrantyRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Messaging\GetAttributesResponse */ - public function getAttributes(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids); - - /** - * Create request for operation 'getAttributes'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getAttributesRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : RequestInterface; + public function getAttributes(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Messaging\GetAttributesResponse; /** * Operation getMessagingActionsForOrder. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -423,27 +235,11 @@ public function getAttributesRequest(AccessToken $accessToken, string $region, s * * @return \AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionsForOrderResponse */ - public function getMessagingActionsForOrder(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids); - - /** - * Create request for operation 'getMessagingActionsForOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getMessagingActionsForOrderRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : RequestInterface; + public function getMessagingActionsForOrder(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionsForOrderResponse; /** * Operation sendInvoice. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body body (required) @@ -453,20 +249,5 @@ public function getMessagingActionsForOrderRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\Messaging\InvoiceResponse */ - public function sendInvoice(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body); - - /** - * Create request for operation 'sendInvoice'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function sendInvoiceRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body) : RequestInterface; + public function sendInvoice(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\InvoiceResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php b/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php index b89a65543..e0849bd1f 100644 --- a/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php @@ -142,8 +142,6 @@ public function createDestination(AccessToken $accessToken, string $region, \Ama /** * Create request for operation 'createDestination'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -334,8 +332,6 @@ public function createSubscription(AccessToken $accessToken, string $region, str /** * Create request for operation 'createSubscription'. * - * @param AccessToken $accessToken - * @param string $region * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required) * @param \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body (required) * @@ -541,8 +537,6 @@ public function deleteDestination(AccessToken $accessToken, string $region, stri /** * Create request for operation 'deleteDestination'. * - * @param AccessToken $accessToken - * @param string $region * @param string $destination_id The identifier for the destination that you want to delete. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -734,8 +728,6 @@ public function deleteSubscriptionById(AccessToken $accessToken, string $region, /** * Create request for operation 'deleteSubscriptionById'. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:notifications-api-v1-use-case-guide). (required) * @@ -941,8 +933,6 @@ public function getDestination(AccessToken $accessToken, string $region, string /** * Create request for operation 'getDestination'. * - * @param AccessToken $accessToken - * @param string $region * @param string $destination_id The identifier generated when you created the destination. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1307,8 +1297,6 @@ public function getSubscription(AccessToken $accessToken, string $region, string /** * Create request for operation 'getSubscription'. * - * @param AccessToken $accessToken - * @param string $region * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1500,8 +1488,6 @@ public function getSubscriptionById(AccessToken $accessToken, string $region, st /** * Create request for operation 'getSubscriptionById'. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:notifications-api-v1-use-case-guide). (required) * diff --git a/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDKInterface.php index 858f138b7..5df8a53f2 100644 --- a/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Notifications. @@ -56,8 +55,6 @@ interface NotificationsSDKInterface /** * Operation createDestination. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body body (required) * * @throws ApiException on non-2xx response @@ -65,26 +62,11 @@ interface NotificationsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationResponse */ - public function createDestination(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body); - - /** - * Create request for operation 'createDestination'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createDestinationRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body) : RequestInterface; + public function createDestination(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body) : \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationResponse; /** * Operation createSubscription. * - * @param AccessToken $accessToken - * @param string $region * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required) * @param \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body body (required) * @@ -93,27 +75,11 @@ public function createDestinationRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionResponse */ - public function createSubscription(AccessToken $accessToken, string $region, string $notification_type, \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body); - - /** - * Create request for operation 'createSubscription'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required) - * @param \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createSubscriptionRequest(AccessToken $accessToken, string $region, string $notification_type, \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body) : RequestInterface; + public function createSubscription(AccessToken $accessToken, string $region, string $notification_type, \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body) : \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionResponse; /** * Operation deleteDestination. * - * @param AccessToken $accessToken - * @param string $region * @param string $destination_id The identifier for the destination that you want to delete. (required) * * @throws ApiException on non-2xx response @@ -121,26 +87,11 @@ public function createSubscriptionRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\Notifications\DeleteDestinationResponse */ - public function deleteDestination(AccessToken $accessToken, string $region, string $destination_id); - - /** - * Create request for operation 'deleteDestination'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $destination_id The identifier for the destination that you want to delete. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function deleteDestinationRequest(AccessToken $accessToken, string $region, string $destination_id) : RequestInterface; + public function deleteDestination(AccessToken $accessToken, string $region, string $destination_id) : \AmazonPHP\SellingPartner\Model\Notifications\DeleteDestinationResponse; /** * Operation deleteSubscriptionById. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:notifications-api-v1-use-case-guide). (required) * @@ -149,27 +100,11 @@ public function deleteDestinationRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Notifications\DeleteSubscriptionByIdResponse */ - public function deleteSubscriptionById(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type); - - /** - * Create request for operation 'deleteSubscriptionById'. - * - * @param AccessToken $accessToken - * @param string $region - * @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](doc:notifications-api-v1-use-case-guide). (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function deleteSubscriptionByIdRequest(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type) : RequestInterface; + public function deleteSubscriptionById(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type) : \AmazonPHP\SellingPartner\Model\Notifications\DeleteSubscriptionByIdResponse; /** * Operation getDestination. * - * @param AccessToken $accessToken - * @param string $region * @param string $destination_id The identifier generated when you created the destination. (required) * * @throws ApiException on non-2xx response @@ -177,20 +112,7 @@ public function deleteSubscriptionByIdRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationResponse */ - public function getDestination(AccessToken $accessToken, string $region, string $destination_id); - - /** - * Create request for operation 'getDestination'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $destination_id The identifier generated when you created the destination. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getDestinationRequest(AccessToken $accessToken, string $region, string $destination_id) : RequestInterface; + public function getDestination(AccessToken $accessToken, string $region, string $destination_id) : \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationResponse; /** * Operation getDestinations. @@ -203,25 +125,11 @@ public function getDestinationRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationsResponse */ - public function getDestinations(AccessToken $accessToken, string $region); - - /** - * Create request for operation 'getDestinations'. - * - * @param AccessToken $accessToken - * @param string $region - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getDestinationsRequest(AccessToken $accessToken, string $region) : RequestInterface; + public function getDestinations(AccessToken $accessToken, string $region) : \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationsResponse; /** * Operation getSubscription. * - * @param AccessToken $accessToken - * @param string $region * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required) * * @throws ApiException on non-2xx response @@ -229,26 +137,11 @@ public function getDestinationsRequest(AccessToken $accessToken, string $region) * * @return \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionResponse */ - public function getSubscription(AccessToken $accessToken, string $region, string $notification_type); - - /** - * Create request for operation 'getSubscription'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getSubscriptionRequest(AccessToken $accessToken, string $region, string $notification_type) : RequestInterface; + public function getSubscription(AccessToken $accessToken, string $region, string $notification_type) : \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionResponse; /** * Operation getSubscriptionById. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:notifications-api-v1-use-case-guide). (required) * @@ -257,19 +150,5 @@ public function getSubscriptionRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionByIdResponse */ - public function getSubscriptionById(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type); - - /** - * Create request for operation 'getSubscriptionById'. - * - * @param AccessToken $accessToken - * @param string $region - * @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](doc:notifications-api-v1-use-case-guide). (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getSubscriptionByIdRequest(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type) : RequestInterface; + public function getSubscriptionById(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type) : \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionByIdResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php index 1050eb968..cac1fb8e1 100644 --- a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php @@ -142,8 +142,6 @@ public function getOrder(AccessToken $accessToken, string $region, string $order /** * Create request for operation 'getOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -334,8 +332,6 @@ public function getOrderAddress(AccessToken $accessToken, string $region, string /** * Create request for operation 'getOrderAddress'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -526,8 +522,6 @@ public function getOrderBuyerInfo(AccessToken $accessToken, string $region, stri /** * Create request for operation 'getOrderBuyerInfo'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -719,8 +713,6 @@ public function getOrderItems(AccessToken $accessToken, string $region, string $ /** * Create request for operation 'getOrderItems'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param null|string $next_token A string token returned in the response of your previous request. (optional) * @@ -922,8 +914,6 @@ public function getOrderItemsBuyerInfo(AccessToken $accessToken, string $region, /** * Create request for operation 'getOrderItemsBuyerInfo'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param null|string $next_token A string token returned in the response of your previous request. (optional) * @@ -1124,8 +1114,6 @@ public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, /** * Create request for operation 'getOrderRegulatedInfo'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1219,6 +1207,8 @@ public function getOrderRegulatedInfoRequest(AccessToken $accessToken, string $r /** * Operation getOrders. * + * @param AccessToken $accessToken + * @param string $region * @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](doc:marketplace-ids) for a complete list of marketplaceId values. (required) * @param null|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 null|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) @@ -1331,8 +1321,6 @@ public function getOrders(AccessToken $accessToken, string $region, array $marke /** * Create request for operation 'getOrders'. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:marketplace-ids) for a complete list of marketplaceId values. (required) * @param null|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 null|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) @@ -1680,8 +1668,6 @@ public function updateVerificationStatus(AccessToken $accessToken, string $regio /** * Create request for operation 'updateVerificationStatus'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) * diff --git a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php index c99f4342c..c7dac0204 100644 --- a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Orders. @@ -56,8 +55,6 @@ interface OrdersSDKInterface /** * Operation getOrder. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws ApiException on non-2xx response @@ -65,26 +62,11 @@ interface OrdersSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderResponse */ - public function getOrder(AccessToken $accessToken, string $region, string $order_id); - - /** - * Create request for operation 'getOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderRequest(AccessToken $accessToken, string $region, string $order_id) : RequestInterface; + public function getOrder(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderResponse; /** * Operation getOrderAddress. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws ApiException on non-2xx response @@ -92,26 +74,11 @@ public function getOrderRequest(AccessToken $accessToken, string $region, string * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderAddressResponse */ - public function getOrderAddress(AccessToken $accessToken, string $region, string $order_id); - - /** - * Create request for operation 'getOrderAddress'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderAddressRequest(AccessToken $accessToken, string $region, string $order_id) : RequestInterface; + public function getOrderAddress(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderAddressResponse; /** * Operation getOrderBuyerInfo. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws ApiException on non-2xx response @@ -119,26 +86,11 @@ public function getOrderAddressRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderBuyerInfoResponse */ - public function getOrderBuyerInfo(AccessToken $accessToken, string $region, string $order_id); - - /** - * Create request for operation 'getOrderBuyerInfo'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderBuyerInfoRequest(AccessToken $accessToken, string $region, string $order_id) : RequestInterface; + public function getOrderBuyerInfo(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderBuyerInfoResponse; /** * Operation getOrderItems. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param null|string $next_token A string token returned in the response of your previous request. (optional) * @@ -147,27 +99,11 @@ public function getOrderBuyerInfoRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsResponse */ - public function getOrderItems(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null); - - /** - * Create request for operation 'getOrderItems'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param null|string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderItemsRequest(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null) : RequestInterface; + public function getOrderItems(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsResponse; /** * Operation getOrderItemsBuyerInfo. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param null|string $next_token A string token returned in the response of your previous request. (optional) * @@ -176,27 +112,11 @@ public function getOrderItemsRequest(AccessToken $accessToken, string $region, s * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsBuyerInfoResponse */ - public function getOrderItemsBuyerInfo(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null); - - /** - * Create request for operation 'getOrderItemsBuyerInfo'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param null|string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderItemsBuyerInfoRequest(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null) : RequestInterface; + public function getOrderItemsBuyerInfo(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsBuyerInfoResponse; /** * Operation getOrderRegulatedInfo. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * * @throws ApiException on non-2xx response @@ -204,26 +124,11 @@ public function getOrderItemsBuyerInfoRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderRegulatedInfoResponse */ - public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, string $order_id); - - /** - * Create request for operation 'getOrderRegulatedInfo'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderRegulatedInfoRequest(AccessToken $accessToken, string $region, string $order_id) : RequestInterface; + public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderRegulatedInfoResponse; /** * Operation getOrders. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:marketplace-ids) for a complete list of marketplaceId values. (required) * @param null|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 null|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) @@ -248,43 +153,11 @@ public function getOrderRegulatedInfoRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse */ - public function getOrders(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null); - - /** - * Create request for operation 'getOrders'. - * - * @param AccessToken $accessToken - * @param string $region - * @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](doc:marketplace-ids) for a complete list of marketplaceId values. (required) - * @param null|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 null|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 null|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 null|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 null|string[] $order_statuses A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional) - * @param null|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 null|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 null|string $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param null|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 null|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 null|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 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 null|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 (electronic invoice was not submitted for this order), Processing (electronic invoice is being processed for this order), Errored (last submitted electronic invoice was rejected for this order), Accepted (last submitted electronic invoice was submitted and accepted) (optional) - * @param null|string $next_token A string token returned in the response of your previous request. (optional) - * @param null|string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) - * @param null|string $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param null|bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param null|string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrdersRequest(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null) : RequestInterface; + public function getOrders(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse; /** * Operation updateVerificationStatus. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) * @@ -292,18 +165,4 @@ public function getOrdersRequest(AccessToken $accessToken, string $region, array * @throws InvalidArgumentException */ public function updateVerificationStatus(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\UpdateVerificationStatusRequest $payload); - - /** - * Create request for operation 'updateVerificationStatus'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateVerificationStatusRequest(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\UpdateVerificationStatusRequest $payload) : RequestInterface; } diff --git a/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php b/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php index 7a0c154b1..f09569c56 100644 --- a/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php @@ -146,8 +146,6 @@ public function getCompetitivePricing(AccessToken $accessToken, string $region, /** * Create request for operation 'getCompetitivePricing'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) @@ -391,8 +389,6 @@ public function getItemOffers(AccessToken $accessToken, string $region, string $ /** * Create request for operation 'getItemOffers'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -623,8 +619,6 @@ public function getItemOffersBatch(AccessToken $accessToken, string $region, \Am /** * Create request for operation 'getItemOffersBatch'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -817,8 +811,6 @@ public function getListingOffers(AccessToken $accessToken, string $region, strin /** * Create request for operation 'getListingOffers'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -1049,8 +1041,6 @@ public function getListingOffersBatch(AccessToken $accessToken, string $region, /** * Create request for operation 'getListingOffersBatch'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1245,8 +1235,6 @@ public function getPricing(AccessToken $accessToken, string $region, string $mar /** * Create request for operation 'getPricing'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) diff --git a/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDKInterface.php index 2b5eef08e..6a613d9ca 100644 --- a/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Pricing. @@ -48,8 +47,6 @@ interface ProductPricingSDKInterface /** * Operation getCompetitivePricing. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) @@ -61,30 +58,11 @@ interface ProductPricingSDKInterface * * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse */ - public function getCompetitivePricing(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $customer_type = null); - - /** - * Create request for operation 'getCompetitivePricing'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param null|string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param null|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 RequestInterface - */ - public function getCompetitivePricingRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $customer_type = null) : RequestInterface; + public function getCompetitivePricing(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $customer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse; /** * Operation getItemOffers. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -95,29 +73,11 @@ public function getCompetitivePricingRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ - public function getItemOffers(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $asin, ?string $customer_type = null); - - /** - * Create request for operation 'getItemOffers'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getItemOffersRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $asin, ?string $customer_type = null) : RequestInterface; + public function getItemOffers(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $asin, ?string $customer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse; /** * Operation getItemOffersBatch. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body get_item_offers_batch_request_body (required) * * @throws ApiException on non-2xx response @@ -125,26 +85,11 @@ public function getItemOffersRequest(AccessToken $accessToken, string $region, s * * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchResponse */ - public function getItemOffersBatch(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body); - - /** - * Create request for operation 'getItemOffersBatch'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getItemOffersBatchRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body) : RequestInterface; + public function getItemOffersBatch(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchResponse; /** * Operation getListingOffers. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -155,29 +100,11 @@ public function getItemOffersBatchRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ - public function getListingOffers(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $seller_sku, ?string $customer_type = null); - - /** - * Create request for operation 'getListingOffers'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getListingOffersRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $seller_sku, ?string $customer_type = null) : RequestInterface; + public function getListingOffers(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $seller_sku, ?string $customer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse; /** * Operation getListingOffersBatch. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body get_listing_offers_batch_request_body (required) * * @throws ApiException on non-2xx response @@ -185,26 +112,11 @@ public function getListingOffersRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchResponse */ - public function getListingOffersBatch(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body); - - /** - * Create request for operation 'getListingOffersBatch'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getListingOffersBatchRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body) : RequestInterface; + public function getListingOffersBatch(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchResponse; /** * Operation getPricing. * - * @param AccessToken $accessToken - * @param string $region * @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 null|string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) @@ -217,23 +129,5 @@ public function getListingOffersBatchRequest(AccessToken $accessToken, string $r * * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse */ - public function getPricing(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $item_condition = null, ?string $offer_type = null); - - /** - * Create request for operation 'getPricing'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param null|string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param null|string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) - * @param null|string $offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getPricingRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $item_condition = null, ?string $offer_type = null) : RequestInterface; + public function getPricing(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $item_condition = null, ?string $offer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php index a5643f07d..9982abe4a 100644 --- a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php @@ -137,8 +137,6 @@ public function cancelReport(AccessToken $accessToken, string $region, string $r /** * Create request for operation 'cancelReport'. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -324,8 +322,6 @@ public function cancelReportSchedule(AccessToken $accessToken, string $region, s /** * Create request for operation 'cancelReportSchedule'. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -516,8 +512,6 @@ public function createReport(AccessToken $accessToken, string $region, \AmazonPH /** * Create request for operation 'createReport'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -707,8 +701,6 @@ public function createReportSchedule(AccessToken $accessToken, string $region, \ /** * Create request for operation 'createReportSchedule'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -898,8 +890,6 @@ public function getReport(AccessToken $accessToken, string $region, string $repo /** * Create request for operation 'getReport'. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1090,8 +1080,6 @@ public function getReportDocument(AccessToken $accessToken, string $region, stri /** * Create request for operation 'getReportDocument'. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_document_id The identifier for the report document. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1282,8 +1270,6 @@ public function getReportSchedule(AccessToken $accessToken, string $region, stri /** * Create request for operation 'getReportSchedule'. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1377,6 +1363,8 @@ public function getReportScheduleRequest(AccessToken $accessToken, string $regio /** * Operation getReportSchedules. * + * @param AccessToken $accessToken + * @param string $region * @param string[] $report_types A list of report types used to filter report schedules. (required) * * @throws ApiException on non-2xx response @@ -1472,8 +1460,6 @@ public function getReportSchedules(AccessToken $accessToken, string $region, arr /** * Create request for operation 'getReportSchedules'. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $report_types A list of report types used to filter report schedules. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1678,8 +1664,6 @@ public function getReports(AccessToken $accessToken, string $region, ?array $rep /** * Create request for operation 'getReports'. * - * @param AccessToken $accessToken - * @param string $region * @param null|string[] $report_types A list of report types used to filter reports. 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 null|string[] $processing_statuses A list of processing statuses used to filter reports. (optional) * @param null|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) diff --git a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php index 59272b194..c442b1914 100644 --- a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Reports. @@ -60,8 +59,6 @@ interface ReportsSDKInterface /** * Operation cancelReport. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * * @throws ApiException on non-2xx response @@ -69,24 +66,9 @@ interface ReportsSDKInterface */ public function cancelReport(AccessToken $accessToken, string $region, string $report_id); - /** - * Create request for operation 'cancelReport'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function cancelReportRequest(AccessToken $accessToken, string $region, string $report_id) : RequestInterface; - /** * Operation cancelReportSchedule. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * * @throws ApiException on non-2xx response @@ -94,24 +76,9 @@ public function cancelReportRequest(AccessToken $accessToken, string $region, st */ public function cancelReportSchedule(AccessToken $accessToken, string $region, string $report_schedule_id); - /** - * Create request for operation 'cancelReportSchedule'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function cancelReportScheduleRequest(AccessToken $accessToken, string $region, string $report_schedule_id) : RequestInterface; - /** * Operation createReport. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body body (required) * * @throws ApiException on non-2xx response @@ -119,26 +86,11 @@ public function cancelReportScheduleRequest(AccessToken $accessToken, string $re * * @return \AmazonPHP\SellingPartner\Model\Reports\CreateReportResponse */ - public function createReport(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body); - - /** - * Create request for operation 'createReport'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createReportRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body) : RequestInterface; + public function createReport(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body) : \AmazonPHP\SellingPartner\Model\Reports\CreateReportResponse; /** * Operation createReportSchedule. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body body (required) * * @throws ApiException on non-2xx response @@ -146,26 +98,11 @@ public function createReportRequest(AccessToken $accessToken, string $region, \A * * @return \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleResponse */ - public function createReportSchedule(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body); - - /** - * Create request for operation 'createReportSchedule'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createReportScheduleRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body) : RequestInterface; + public function createReportSchedule(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body) : \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleResponse; /** * Operation getReport. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * * @throws ApiException on non-2xx response @@ -173,26 +110,11 @@ public function createReportScheduleRequest(AccessToken $accessToken, string $re * * @return \AmazonPHP\SellingPartner\Model\Reports\Report */ - public function getReport(AccessToken $accessToken, string $region, string $report_id); - - /** - * Create request for operation 'getReport'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getReportRequest(AccessToken $accessToken, string $region, string $report_id) : RequestInterface; + public function getReport(AccessToken $accessToken, string $region, string $report_id) : \AmazonPHP\SellingPartner\Model\Reports\Report; /** * Operation getReportDocument. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_document_id The identifier for the report document. (required) * * @throws ApiException on non-2xx response @@ -200,26 +122,11 @@ public function getReportRequest(AccessToken $accessToken, string $region, strin * * @return \AmazonPHP\SellingPartner\Model\Reports\ReportDocument */ - public function getReportDocument(AccessToken $accessToken, string $region, string $report_document_id); - - /** - * Create request for operation 'getReportDocument'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $report_document_id The identifier for the report document. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getReportDocumentRequest(AccessToken $accessToken, string $region, string $report_document_id) : RequestInterface; + public function getReportDocument(AccessToken $accessToken, string $region, string $report_document_id) : \AmazonPHP\SellingPartner\Model\Reports\ReportDocument; /** * Operation getReportSchedule. * - * @param AccessToken $accessToken - * @param string $region * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * * @throws ApiException on non-2xx response @@ -227,26 +134,11 @@ public function getReportDocumentRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Reports\ReportSchedule */ - public function getReportSchedule(AccessToken $accessToken, string $region, string $report_schedule_id); - - /** - * Create request for operation 'getReportSchedule'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getReportScheduleRequest(AccessToken $accessToken, string $region, string $report_schedule_id) : RequestInterface; + public function getReportSchedule(AccessToken $accessToken, string $region, string $report_schedule_id) : \AmazonPHP\SellingPartner\Model\Reports\ReportSchedule; /** * Operation getReportSchedules. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $report_types A list of report types used to filter report schedules. (required) * * @throws ApiException on non-2xx response @@ -254,26 +146,11 @@ public function getReportScheduleRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Reports\ReportScheduleList */ - public function getReportSchedules(AccessToken $accessToken, string $region, array $report_types); - - /** - * Create request for operation 'getReportSchedules'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string[] $report_types A list of report types used to filter report schedules. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getReportSchedulesRequest(AccessToken $accessToken, string $region, array $report_types) : RequestInterface; + public function getReportSchedules(AccessToken $accessToken, string $region, array $report_types) : \AmazonPHP\SellingPartner\Model\Reports\ReportScheduleList; /** * Operation getReports. * - * @param AccessToken $accessToken - * @param string $region * @param null|string[] $report_types A list of report types used to filter reports. 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 null|string[] $processing_statuses A list of processing statuses used to filter reports. (optional) * @param null|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) @@ -287,24 +164,5 @@ public function getReportSchedulesRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\Reports\GetReportsResponse */ - public function getReports(AccessToken $accessToken, string $region, ?array $report_types = null, ?array $processing_statuses = null, ?array $marketplace_ids = null, int $page_size = 10, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null); - - /** - * Create request for operation 'getReports'. - * - * @param AccessToken $accessToken - * @param string $region - * @param null|string[] $report_types A list of report types used to filter reports. 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 null|string[] $processing_statuses A list of processing statuses used to filter reports. (optional) - * @param null|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 null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|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 RequestInterface - */ - public function getReportsRequest(AccessToken $accessToken, string $region, ?array $report_types = null, ?array $processing_statuses = null, ?array $marketplace_ids = null, int $page_size = 10, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null) : RequestInterface; + public function getReports(AccessToken $accessToken, string $region, ?array $report_types = null, ?array $processing_statuses = null, ?array $marketplace_ids = null, int $page_size = 10, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Reports\GetReportsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php b/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php index 055aac95c..7aa795222 100644 --- a/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation getOrderMetrics. * + * @param AccessToken $accessToken + * @param string $region * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) @@ -148,8 +150,6 @@ public function getOrderMetrics(AccessToken $accessToken, string $region, array /** * Create request for operation 'getOrderMetrics'. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) diff --git a/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDKInterface.php index c7a8dff32..810e8b3e4 100644 --- a/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Sales. @@ -28,8 +27,6 @@ interface SalesSDKInterface /** * Operation getOrderMetrics. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) @@ -45,26 +42,5 @@ interface SalesSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Sales\GetOrderMetricsResponse */ - public function getOrderMetrics(AccessToken $accessToken, string $region, array $marketplace_ids, string $interval, string $granularity, ?string $granularity_time_zone = null, string $buyer_type = 'All', ?string $fulfillment_network = null, string $first_day_of_week = 'Monday', ?string $asin = null, ?string $sku = null); - - /** - * Create request for operation 'getOrderMetrics'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) - * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) - * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) - * @param null|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 null|string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) - * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to 'Monday') - * @param null|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 null|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 RequestInterface - */ - public function getOrderMetricsRequest(AccessToken $accessToken, string $region, array $marketplace_ids, string $interval, string $granularity, ?string $granularity_time_zone = null, string $buyer_type = 'All', ?string $fulfillment_network = null, string $first_day_of_week = 'Monday', ?string $asin = null, ?string $sku = null) : RequestInterface; + public function getOrderMetrics(AccessToken $accessToken, string $region, array $marketplace_ids, string $interval, string $granularity, ?string $granularity_time_zone = null, string $buyer_type = 'All', ?string $fulfillment_network = null, string $first_day_of_week = 'Monday', ?string $asin = null, ?string $sku = null) : \AmazonPHP\SellingPartner\Model\Sales\GetOrderMetricsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDKInterface.php index 0f843b308..ecc2adc7a 100644 --- a/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Sellers. @@ -36,17 +35,5 @@ interface SellersSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Sellers\GetMarketplaceParticipationsResponse */ - public function getMarketplaceParticipations(AccessToken $accessToken, string $region); - - /** - * Create request for operation 'getMarketplaceParticipations'. - * - * @param AccessToken $accessToken - * @param string $region - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getMarketplaceParticipationsRequest(AccessToken $accessToken, string $region) : RequestInterface; + public function getMarketplaceParticipations(AccessToken $accessToken, string $region) : \AmazonPHP\SellingPartner\Model\Sellers\GetMarketplaceParticipationsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php b/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php index 3339575e8..fb03ca777 100644 --- a/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php @@ -143,8 +143,6 @@ public function addAppointmentForServiceJobByServiceJobId(AccessToken $accessTok /** * Create request for operation 'addAppointmentForServiceJobByServiceJobId'. * - * @param AccessToken $accessToken - * @param string $region * @param string $service_job_id An Amazon defined service job identifier. (required) * @param \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body Add appointment operation input details. (required) * @@ -361,8 +359,6 @@ public function assignAppointmentResources(AccessToken $accessToken, string $reg /** * Create request for operation 'assignAppointmentResources'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body (required) @@ -504,6 +500,8 @@ public function assignAppointmentResourcesRequest(AccessToken $accessToken, stri /** * Operation cancelReservation. * + * @param AccessToken $accessToken + * @param string $region * @param string $reservation_id Reservation Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @@ -600,8 +598,6 @@ public function cancelReservation(AccessToken $accessToken, string $region, stri /** * Create request for operation 'cancelReservation'. * - * @param AccessToken $accessToken - * @param string $region * @param string $reservation_id Reservation Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @@ -822,8 +818,6 @@ public function cancelServiceJobByServiceJobId(AccessToken $accessToken, string /** * Create request for operation 'cancelServiceJobByServiceJobId'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -1051,8 +1045,6 @@ public function completeServiceJobByServiceJobId(AccessToken $accessToken, strin /** * Create request for operation 'completeServiceJobByServiceJobId'. * - * @param AccessToken $accessToken - * @param string $region * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1154,6 +1146,8 @@ public function completeServiceJobByServiceJobIdRequest(AccessToken $accessToken /** * Operation createReservation. * + * @param AccessToken $accessToken + * @param string $region * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body Reservation details (required) * @@ -1250,8 +1244,6 @@ public function createReservation(AccessToken $accessToken, string $region, arra /** * Create request for operation 'createReservation'. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body Reservation details (required) * @@ -1462,8 +1454,6 @@ public function createServiceDocumentUploadDestination(AccessToken $accessToken, /** * Create request for operation 'createServiceDocumentUploadDestination'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body Upload document operation input details. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1556,6 +1546,8 @@ public function createServiceDocumentUploadDestinationRequest(AccessToken $acces /** * Operation getAppointmentSlots. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -1655,8 +1647,6 @@ public function getAppointmentSlots(AccessToken $accessToken, string $region, st /** * Create request for operation 'getAppointmentSlots'. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -1811,6 +1801,8 @@ public function getAppointmentSlotsRequest(AccessToken $accessToken, string $reg /** * Operation getAppointmmentSlotsByJobId. * + * @param AccessToken $accessToken + * @param string $region * @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 null|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) @@ -1909,8 +1901,6 @@ public function getAppointmmentSlotsByJobId(AccessToken $accessToken, string $re /** * Create request for operation 'getAppointmmentSlotsByJobId'. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -2051,6 +2041,8 @@ public function getAppointmmentSlotsByJobIdRequest(AccessToken $accessToken, str /** * Operation getFixedSlotCapacity. * + * @param AccessToken $accessToken + * @param string $region * @param string $resource_id Resource Identifier. (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body Request body. (required) @@ -2149,8 +2141,6 @@ public function getFixedSlotCapacity(AccessToken $accessToken, string $region, s /** * Create request for operation 'getFixedSlotCapacity'. * - * @param AccessToken $accessToken - * @param string $region * @param string $resource_id Resource Identifier. (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body Request body. (required) @@ -2298,6 +2288,8 @@ public function getFixedSlotCapacityRequest(AccessToken $accessToken, string $re /** * Operation getRangeSlotCapacity. * + * @param AccessToken $accessToken + * @param string $region * @param string $resource_id Resource Identifier. (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body Request body. (required) @@ -2396,8 +2388,6 @@ public function getRangeSlotCapacity(AccessToken $accessToken, string $region, s /** * Create request for operation 'getRangeSlotCapacity'. * - * @param AccessToken $accessToken - * @param string $region * @param string $resource_id Resource Identifier. (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body Request body. (required) @@ -2642,8 +2632,6 @@ public function getServiceJobByServiceJobId(AccessToken $accessToken, string $re /** * Create request for operation 'getServiceJobByServiceJobId'. * - * @param AccessToken $accessToken - * @param string $region * @param string $service_job_id A service job identifier. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -2745,6 +2733,8 @@ public function getServiceJobByServiceJobIdRequest(AccessToken $accessToken, str /** * Operation getServiceJobs. * + * @param AccessToken $accessToken + * @param string $region * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) * @param null|string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) * @param null|string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) @@ -2855,8 +2845,6 @@ public function getServiceJobs(AccessToken $accessToken, string $region, array $ /** * Create request for operation 'getServiceJobs'. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) * @param null|string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) * @param null|string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) @@ -3228,8 +3216,6 @@ public function rescheduleAppointmentForServiceJobByServiceJobId(AccessToken $ac /** * Create request for operation 'rescheduleAppointmentForServiceJobByServiceJobId'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) @@ -3470,8 +3456,6 @@ public function setAppointmentFulfillmentData(AccessToken $accessToken, string $ /** * Create request for operation 'setAppointmentFulfillmentData'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) @@ -3613,6 +3597,8 @@ public function setAppointmentFulfillmentDataRequest(AccessToken $accessToken, s /** * Operation updateReservation. * + * @param AccessToken $accessToken + * @param string $region * @param string $reservation_id Reservation Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body Reservation details (required) @@ -3710,8 +3696,6 @@ public function updateReservation(AccessToken $accessToken, string $region, stri /** * Create request for operation 'updateReservation'. * - * @param AccessToken $accessToken - * @param string $region * @param string $reservation_id Reservation Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body Reservation details (required) @@ -3850,6 +3834,8 @@ public function updateReservationRequest(AccessToken $accessToken, string $regio /** * Operation updateSchedule. * + * @param AccessToken $accessToken + * @param string $region * @param string $resource_id Resource (store) Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body Schedule details (required) @@ -3947,8 +3933,6 @@ public function updateSchedule(AccessToken $accessToken, string $region, string /** * Create request for operation 'updateSchedule'. * - * @param AccessToken $accessToken - * @param string $region * @param string $resource_id Resource (store) Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body Schedule details (required) diff --git a/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDKInterface.php index f22766570..a32230fd6 100644 --- a/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Services. @@ -92,8 +91,6 @@ interface ServicesSDKInterface /** * Operation addAppointmentForServiceJobByServiceJobId. * - * @param AccessToken $accessToken - * @param string $region * @param string $service_job_id An Amazon defined service job identifier. (required) * @param \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body Add appointment operation input details. (required) * @@ -102,27 +99,11 @@ interface ServicesSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse */ - public function addAppointmentForServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body); - - /** - * Create request for operation 'addAppointmentForServiceJobByServiceJobId'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body Add appointment operation input details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function addAppointmentForServiceJobByServiceJobIdRequest(AccessToken $accessToken, string $region, string $service_job_id, \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body) : RequestInterface; + public function addAppointmentForServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body) : \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse; /** * Operation assignAppointmentResources. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body body (required) @@ -132,28 +113,11 @@ public function addAppointmentForServiceJobByServiceJobIdRequest(AccessToken $ac * * @return \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesResponse */ - public function assignAppointmentResources(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body); - - /** - * Create request for operation 'assignAppointmentResources'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function assignAppointmentResourcesRequest(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body) : RequestInterface; + public function assignAppointmentResources(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body) : \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesResponse; /** * Operation cancelReservation. * - * @param AccessToken $accessToken - * @param string $region * @param string $reservation_id Reservation Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @@ -162,27 +126,11 @@ public function assignAppointmentResourcesRequest(AccessToken $accessToken, stri * * @return \AmazonPHP\SellingPartner\Model\Services\CancelReservationResponse */ - public function cancelReservation(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids); - - /** - * Create request for operation 'cancelReservation'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function cancelReservationRequest(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids) : RequestInterface; + public function cancelReservation(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Services\CancelReservationResponse; /** * Operation cancelServiceJobByServiceJobId. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -191,27 +139,11 @@ public function cancelReservationRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Services\CancelServiceJobByServiceJobIdResponse */ - public function cancelServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, string $cancellation_reason_code); - - /** - * Create request for operation 'cancelServiceJobByServiceJobId'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function cancelServiceJobByServiceJobIdRequest(AccessToken $accessToken, string $region, string $service_job_id, string $cancellation_reason_code) : RequestInterface; + public function cancelServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, string $cancellation_reason_code) : \AmazonPHP\SellingPartner\Model\Services\CancelServiceJobByServiceJobIdResponse; /** * Operation completeServiceJobByServiceJobId. * - * @param AccessToken $accessToken - * @param string $region * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws ApiException on non-2xx response @@ -219,26 +151,11 @@ public function cancelServiceJobByServiceJobIdRequest(AccessToken $accessToken, * * @return \AmazonPHP\SellingPartner\Model\Services\CompleteServiceJobByServiceJobIdResponse */ - public function completeServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id); - - /** - * Create request for operation 'completeServiceJobByServiceJobId'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $service_job_id An Amazon defined service job identifier. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function completeServiceJobByServiceJobIdRequest(AccessToken $accessToken, string $region, string $service_job_id) : RequestInterface; + public function completeServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id) : \AmazonPHP\SellingPartner\Model\Services\CompleteServiceJobByServiceJobIdResponse; /** * Operation createReservation. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body Reservation details (required) * @@ -247,27 +164,11 @@ public function completeServiceJobByServiceJobIdRequest(AccessToken $accessToken * * @return \AmazonPHP\SellingPartner\Model\Services\CreateReservationResponse */ - public function createReservation(AccessToken $accessToken, string $region, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body); - - /** - * Create request for operation 'createReservation'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body Reservation details (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createReservationRequest(AccessToken $accessToken, string $region, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body) : RequestInterface; + public function createReservation(AccessToken $accessToken, string $region, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body) : \AmazonPHP\SellingPartner\Model\Services\CreateReservationResponse; /** * Operation createServiceDocumentUploadDestination. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body Upload document operation input details. (required) * * @throws ApiException on non-2xx response @@ -275,26 +176,11 @@ public function createReservationRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Services\CreateServiceDocumentUploadDestination */ - public function createServiceDocumentUploadDestination(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body); - - /** - * Create request for operation 'createServiceDocumentUploadDestination'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body Upload document operation input details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createServiceDocumentUploadDestinationRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body) : RequestInterface; + public function createServiceDocumentUploadDestination(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body) : \AmazonPHP\SellingPartner\Model\Services\CreateServiceDocumentUploadDestination; /** * Operation getAppointmentSlots. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -306,30 +192,11 @@ public function createServiceDocumentUploadDestinationRequest(AccessToken $acces * * @return \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse */ - public function getAppointmentSlots(AccessToken $accessToken, string $region, string $asin, string $store_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null); - - /** - * Create request for operation 'getAppointmentSlots'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 null|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 RequestInterface - */ - public function getAppointmentSlotsRequest(AccessToken $accessToken, string $region, string $asin, string $store_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null) : RequestInterface; + public function getAppointmentSlots(AccessToken $accessToken, string $region, string $asin, string $store_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null) : \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse; /** * Operation getAppointmmentSlotsByJobId. * - * @param AccessToken $accessToken - * @param string $region * @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 null|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) @@ -340,29 +207,11 @@ public function getAppointmentSlotsRequest(AccessToken $accessToken, string $reg * * @return \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse */ - public function getAppointmmentSlotsByJobId(AccessToken $accessToken, string $region, string $service_job_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null); - - /** - * Create request for operation 'getAppointmmentSlotsByJobId'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|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 null|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 RequestInterface - */ - public function getAppointmmentSlotsByJobIdRequest(AccessToken $accessToken, string $region, string $service_job_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null) : RequestInterface; + public function getAppointmmentSlotsByJobId(AccessToken $accessToken, string $region, string $service_job_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null) : \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse; /** * Operation getFixedSlotCapacity. * - * @param AccessToken $accessToken - * @param string $region * @param string $resource_id Resource Identifier. (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body Request body. (required) @@ -373,29 +222,11 @@ public function getAppointmmentSlotsByJobIdRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacity */ - public function getFixedSlotCapacity(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body, ?string $next_page_token = null); - - /** - * Create request for operation 'getFixedSlotCapacity'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body Request body. (required) - * @param null|string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getFixedSlotCapacityRequest(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body, ?string $next_page_token = null) : RequestInterface; + public function getFixedSlotCapacity(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body, ?string $next_page_token = null) : \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacity; /** * Operation getRangeSlotCapacity. * - * @param AccessToken $accessToken - * @param string $region * @param string $resource_id Resource Identifier. (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body Request body. (required) @@ -406,29 +237,11 @@ public function getFixedSlotCapacityRequest(AccessToken $accessToken, string $re * * @return \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacity */ - public function getRangeSlotCapacity(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body, ?string $next_page_token = null); - - /** - * Create request for operation 'getRangeSlotCapacity'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body Request body. (required) - * @param null|string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getRangeSlotCapacityRequest(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body, ?string $next_page_token = null) : RequestInterface; + public function getRangeSlotCapacity(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body, ?string $next_page_token = null) : \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacity; /** * Operation getServiceJobByServiceJobId. * - * @param AccessToken $accessToken - * @param string $region * @param string $service_job_id A service job identifier. (required) * * @throws ApiException on non-2xx response @@ -436,26 +249,11 @@ public function getRangeSlotCapacityRequest(AccessToken $accessToken, string $re * * @return \AmazonPHP\SellingPartner\Model\Services\GetServiceJobByServiceJobIdResponse */ - public function getServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id); - - /** - * Create request for operation 'getServiceJobByServiceJobId'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $service_job_id A service job identifier. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getServiceJobByServiceJobIdRequest(AccessToken $accessToken, string $region, string $service_job_id) : RequestInterface; + public function getServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id) : \AmazonPHP\SellingPartner\Model\Services\GetServiceJobByServiceJobIdResponse; /** * Operation getServiceJobs. * - * @param AccessToken $accessToken - * @param string $region * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) * @param null|string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) * @param null|string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) @@ -478,41 +276,11 @@ public function getServiceJobByServiceJobIdRequest(AccessToken $accessToken, str * * @return \AmazonPHP\SellingPartner\Model\Services\GetServiceJobsResponse */ - public function getServiceJobs(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $service_order_ids = null, ?array $service_job_status = null, ?string $page_token = null, int $page_size = 20, ?string $sort_field = null, ?string $sort_order = null, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?string $schedule_start_date = null, ?string $schedule_end_date = null, ?array $asins = null, ?array $required_skills = null, ?array $store_ids = null); - - /** - * Create request for operation 'getServiceJobs'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) - * @param null|string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) - * @param null|string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) - * @param null|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 null|string $sort_field Sort fields on which you want to sort the output. (optional) - * @param null|string $sort_order Sort order for the query you want to perform. (optional) - * @param null|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 null|string $created_before A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format. (optional) - * @param null|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 null|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 null|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 null|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 null|string[] $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. (optional) - * @param null|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 null|string[] $store_ids List of Amazon-defined identifiers for the region scope. Max values supported is 50. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getServiceJobsRequest(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $service_order_ids = null, ?array $service_job_status = null, ?string $page_token = null, int $page_size = 20, ?string $sort_field = null, ?string $sort_order = null, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?string $schedule_start_date = null, ?string $schedule_end_date = null, ?array $asins = null, ?array $required_skills = null, ?array $store_ids = null) : RequestInterface; + public function getServiceJobs(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $service_order_ids = null, ?array $service_job_status = null, ?string $page_token = null, int $page_size = 20, ?string $sort_field = null, ?string $sort_order = null, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?string $schedule_start_date = null, ?string $schedule_end_date = null, ?array $asins = null, ?array $required_skills = null, ?array $store_ids = null) : \AmazonPHP\SellingPartner\Model\Services\GetServiceJobsResponse; /** * Operation rescheduleAppointmentForServiceJobByServiceJobId. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) @@ -522,28 +290,11 @@ public function getServiceJobsRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse */ - public function rescheduleAppointmentForServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body); - - /** - * Create request for operation 'rescheduleAppointmentForServiceJobByServiceJobId'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function rescheduleAppointmentForServiceJobByServiceJobIdRequest(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body) : RequestInterface; + public function rescheduleAppointmentForServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body) : \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse; /** * Operation setAppointmentFulfillmentData. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) @@ -553,28 +304,11 @@ public function rescheduleAppointmentForServiceJobByServiceJobIdRequest(AccessTo * * @return string */ - public function setAppointmentFulfillmentData(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body); - - /** - * Create request for operation 'setAppointmentFulfillmentData'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function setAppointmentFulfillmentDataRequest(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body) : RequestInterface; + public function setAppointmentFulfillmentData(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body) : string; /** * Operation updateReservation. * - * @param AccessToken $accessToken - * @param string $region * @param string $reservation_id Reservation Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body Reservation details (required) @@ -584,28 +318,11 @@ public function setAppointmentFulfillmentDataRequest(AccessToken $accessToken, s * * @return \AmazonPHP\SellingPartner\Model\Services\UpdateReservationResponse */ - public function updateReservation(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body); - - /** - * Create request for operation 'updateReservation'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body Reservation details (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateReservationRequest(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body) : RequestInterface; + public function updateReservation(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body) : \AmazonPHP\SellingPartner\Model\Services\UpdateReservationResponse; /** * Operation updateSchedule. * - * @param AccessToken $accessToken - * @param string $region * @param string $resource_id Resource (store) Identifier (required) * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) * @param \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body Schedule details (required) @@ -615,20 +332,5 @@ public function updateReservationRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleResponse */ - public function updateSchedule(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body); - - /** - * Create request for operation 'updateSchedule'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $resource_id Resource (store) Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body Schedule details (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateScheduleRequest(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body) : RequestInterface; + public function updateSchedule(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body) : \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php index 7d3633bf9..93c309bb5 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php @@ -138,8 +138,6 @@ public function updateShipmentStatus(AccessToken $accessToken, string $region, s /** * Create request for operation 'updateShipmentStatus'. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) * diff --git a/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDKInterface.php index 0f1e25b8a..f067d858a 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Orders. @@ -28,8 +27,6 @@ interface OrdersSDKInterface /** * Operation updateShipmentStatus. * - * @param AccessToken $accessToken - * @param string $region * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) * @@ -37,18 +34,4 @@ interface OrdersSDKInterface * @throws InvalidArgumentException */ public function updateShipmentStatus(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\UpdateShipmentStatusRequest $payload); - - /** - * Create request for operation 'updateShipmentStatus'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function updateShipmentStatusRequest(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\UpdateShipmentStatusRequest $payload) : RequestInterface; } diff --git a/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php b/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php index 0a0532c39..77f8dff5c 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php @@ -142,8 +142,6 @@ public function getInvoiceStatus(AccessToken $accessToken, string $region, strin /** * Create request for operation 'getInvoiceStatus'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The shipment identifier for the shipment. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -334,8 +332,6 @@ public function getShipmentDetails(AccessToken $accessToken, string $region, str /** * Create request for operation 'getShipmentDetails'. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:notifications-api-v1-use-case-guide). (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -527,8 +523,6 @@ public function submitInvoice(AccessToken $accessToken, string $region, string $ /** * Create request for operation 'submitInvoice'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The identifier for the shipment. (required) * @param \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body (required) * diff --git a/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDKInterface.php index 9b3b6dfbe..5aa1164e6 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Shipment Invoicing. @@ -36,8 +35,6 @@ interface ShipmentInvoicingSDKInterface /** * Operation getInvoiceStatus. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The shipment identifier for the shipment. (required) * * @throws ApiException on non-2xx response @@ -45,26 +42,11 @@ interface ShipmentInvoicingSDKInterface * * @return \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetInvoiceStatusResponse */ - public function getInvoiceStatus(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'getInvoiceStatus'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id The shipment identifier for the shipment. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getInvoiceStatusRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function getInvoiceStatus(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetInvoiceStatusResponse; /** * Operation getShipmentDetails. * - * @param AccessToken $accessToken - * @param string $region * @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](doc:notifications-api-v1-use-case-guide). (required) * * @throws ApiException on non-2xx response @@ -72,26 +54,11 @@ public function getInvoiceStatusRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetShipmentDetailsResponse */ - public function getShipmentDetails(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'getShipmentDetails'. - * - * @param AccessToken $accessToken - * @param string $region - * @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](doc:notifications-api-v1-use-case-guide). (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getShipmentDetailsRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function getShipmentDetails(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetShipmentDetailsResponse; /** * Operation submitInvoice. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id The identifier for the shipment. (required) * @param \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body body (required) * @@ -100,19 +67,5 @@ public function getShipmentDetailsRequest(AccessToken $accessToken, string $regi * * @return \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceResponse */ - public function submitInvoice(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body); - - /** - * Create request for operation 'submitInvoice'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id The identifier for the shipment. (required) - * @param \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitInvoiceRequest(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body) : RequestInterface; + public function submitInvoice(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body) : \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php b/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php index cad731642..176f05753 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php @@ -142,8 +142,6 @@ public function cancelShipment(AccessToken $accessToken, string $region, string /** * Create request for operation 'cancelShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -334,8 +332,6 @@ public function createShipment(AccessToken $accessToken, string $region, \Amazon /** * Create request for operation 'createShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -699,8 +695,6 @@ public function getRates(AccessToken $accessToken, string $region, \AmazonPHP\Se /** * Create request for operation 'getRates'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -890,8 +884,6 @@ public function getShipment(AccessToken $accessToken, string $region, string $sh /** * Create request for operation 'getShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1082,8 +1074,6 @@ public function getTrackingInformation(AccessToken $accessToken, string $region, /** * Create request for operation 'getTrackingInformation'. * - * @param AccessToken $accessToken - * @param string $region * @param string $tracking_id (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1275,8 +1265,6 @@ public function purchaseLabels(AccessToken $accessToken, string $region, string /** * Create request for operation 'purchaseLabels'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id (required) * @param \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body (required) * @@ -1482,8 +1470,6 @@ public function purchaseShipment(AccessToken $accessToken, string $region, \Amaz /** * Create request for operation 'purchaseShipment'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -1675,8 +1661,6 @@ public function retrieveShippingLabel(AccessToken $accessToken, string $region, /** * Create request for operation 'retrieveShippingLabel'. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id (required) * @param string $tracking_id (required) * @param \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body (required) diff --git a/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDKInterface.php index 8ab520345..6b5f74465 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Shipping. @@ -60,8 +59,6 @@ interface ShippingSDKInterface /** * Operation cancelShipment. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id shipment_id (required) * * @throws ApiException on non-2xx response @@ -69,26 +66,11 @@ interface ShippingSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Shipping\CancelShipmentResponse */ - public function cancelShipment(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'cancelShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function cancelShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function cancelShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\Shipping\CancelShipmentResponse; /** * Operation createShipment. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body body (required) * * @throws ApiException on non-2xx response @@ -96,20 +78,7 @@ public function cancelShipmentRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentResponse */ - public function createShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body); - - /** - * Create request for operation 'createShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createShipmentRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body) : RequestInterface; + public function createShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentResponse; /** * Operation getAccount. @@ -122,25 +91,11 @@ public function createShipmentRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Shipping\GetAccountResponse */ - public function getAccount(AccessToken $accessToken, string $region); - - /** - * Create request for operation 'getAccount'. - * - * @param AccessToken $accessToken - * @param string $region - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getAccountRequest(AccessToken $accessToken, string $region) : RequestInterface; + public function getAccount(AccessToken $accessToken, string $region) : \AmazonPHP\SellingPartner\Model\Shipping\GetAccountResponse; /** * Operation getRates. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body body (required) * * @throws ApiException on non-2xx response @@ -148,26 +103,11 @@ public function getAccountRequest(AccessToken $accessToken, string $region) : Re * * @return \AmazonPHP\SellingPartner\Model\Shipping\GetRatesResponse */ - public function getRates(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body); - - /** - * Create request for operation 'getRates'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getRatesRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body) : RequestInterface; + public function getRates(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\GetRatesResponse; /** * Operation getShipment. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id shipment_id (required) * * @throws ApiException on non-2xx response @@ -175,26 +115,11 @@ public function getRatesRequest(AccessToken $accessToken, string $region, \Amazo * * @return \AmazonPHP\SellingPartner\Model\Shipping\GetShipmentResponse */ - public function getShipment(AccessToken $accessToken, string $region, string $shipment_id); - - /** - * Create request for operation 'getShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface; + public function getShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\Shipping\GetShipmentResponse; /** * Operation getTrackingInformation. * - * @param AccessToken $accessToken - * @param string $region * @param string $tracking_id tracking_id (required) * * @throws ApiException on non-2xx response @@ -202,26 +127,11 @@ public function getShipmentRequest(AccessToken $accessToken, string $region, str * * @return \AmazonPHP\SellingPartner\Model\Shipping\GetTrackingInformationResponse */ - public function getTrackingInformation(AccessToken $accessToken, string $region, string $tracking_id); - - /** - * Create request for operation 'getTrackingInformation'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $tracking_id (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getTrackingInformationRequest(AccessToken $accessToken, string $region, string $tracking_id) : RequestInterface; + public function getTrackingInformation(AccessToken $accessToken, string $region, string $tracking_id) : \AmazonPHP\SellingPartner\Model\Shipping\GetTrackingInformationResponse; /** * Operation purchaseLabels. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id shipment_id (required) * @param \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body body (required) * @@ -230,27 +140,11 @@ public function getTrackingInformationRequest(AccessToken $accessToken, string $ * * @return \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsResponse */ - public function purchaseLabels(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body); - - /** - * Create request for operation 'purchaseLabels'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id (required) - * @param \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function purchaseLabelsRequest(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body) : RequestInterface; + public function purchaseLabels(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsResponse; /** * Operation purchaseShipment. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body body (required) * * @throws ApiException on non-2xx response @@ -258,26 +152,11 @@ public function purchaseLabelsRequest(AccessToken $accessToken, string $region, * * @return \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentResponse */ - public function purchaseShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body); - - /** - * Create request for operation 'purchaseShipment'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function purchaseShipmentRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body) : RequestInterface; + public function purchaseShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentResponse; /** * Operation retrieveShippingLabel. * - * @param AccessToken $accessToken - * @param string $region * @param string $shipment_id shipment_id (required) * @param string $tracking_id tracking_id (required) * @param \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body body (required) @@ -287,20 +166,5 @@ public function purchaseShipmentRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelResponse */ - public function retrieveShippingLabel(AccessToken $accessToken, string $region, string $shipment_id, string $tracking_id, \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body); - - /** - * Create request for operation 'retrieveShippingLabel'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $shipment_id (required) - * @param string $tracking_id (required) - * @param \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function retrieveShippingLabelRequest(AccessToken $accessToken, string $region, string $shipment_id, string $tracking_id, \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body) : RequestInterface; + public function retrieveShippingLabel(AccessToken $accessToken, string $region, string $shipment_id, string $tracking_id, \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php b/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php index 4e56541c0..f838e7b54 100644 --- a/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php @@ -138,8 +138,6 @@ public function deleteSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToke /** * Create request for operation 'deleteSmallAndLightEnrollmentBySellerSKU'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -253,6 +251,8 @@ public function deleteSmallAndLightEnrollmentBySellerSKURequest(AccessToken $acc /** * Operation getSmallAndLightEligibilityBySellerSKU. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -349,8 +349,6 @@ public function getSmallAndLightEligibilityBySellerSKU(AccessToken $accessToken, /** * Create request for operation 'getSmallAndLightEligibilityBySellerSKU'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -464,6 +462,8 @@ public function getSmallAndLightEligibilityBySellerSKURequest(AccessToken $acces /** * Operation getSmallAndLightEnrollmentBySellerSKU. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -560,8 +560,6 @@ public function getSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, /** * Create request for operation 'getSmallAndLightEnrollmentBySellerSKU'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -772,8 +770,6 @@ public function getSmallAndLightFeePreview(AccessToken $accessToken, string $reg /** * Create request for operation 'getSmallAndLightFeePreview'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -866,6 +862,8 @@ public function getSmallAndLightFeePreviewRequest(AccessToken $accessToken, stri /** * Operation putSmallAndLightEnrollmentBySellerSKU. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -962,8 +960,6 @@ public function putSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, /** * Create request for operation 'putSmallAndLightEnrollmentBySellerSKU'. * - * @param AccessToken $accessToken - * @param string $region * @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) * diff --git a/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDKInterface.php index 0eb71ab83..41314880a 100644 --- a/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for FBA Small And Light. @@ -44,8 +43,6 @@ interface FBASmallAndLightSDKInterface /** * Operation deleteSmallAndLightEnrollmentBySellerSKU. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -54,25 +51,9 @@ interface FBASmallAndLightSDKInterface */ public function deleteSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids); - /** - * Create request for operation 'deleteSmallAndLightEnrollmentBySellerSKU'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function deleteSmallAndLightEnrollmentBySellerSKURequest(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : RequestInterface; - /** * Operation getSmallAndLightEligibilityBySellerSKU. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -81,27 +62,11 @@ public function deleteSmallAndLightEnrollmentBySellerSKURequest(AccessToken $acc * * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEligibility */ - public function getSmallAndLightEligibilityBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids); - - /** - * Create request for operation 'getSmallAndLightEligibilityBySellerSKU'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getSmallAndLightEligibilityBySellerSKURequest(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : RequestInterface; + public function getSmallAndLightEligibilityBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEligibility; /** * Operation getSmallAndLightEnrollmentBySellerSKU. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -110,27 +75,11 @@ public function getSmallAndLightEligibilityBySellerSKURequest(AccessToken $acces * * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment */ - public function getSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids); - - /** - * Create request for operation 'getSmallAndLightEnrollmentBySellerSKU'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getSmallAndLightEnrollmentBySellerSKURequest(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : RequestInterface; + public function getSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment; /** * Operation getSmallAndLightFeePreview. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body body (required) * * @throws ApiException on non-2xx response @@ -138,26 +87,11 @@ public function getSmallAndLightEnrollmentBySellerSKURequest(AccessToken $access * * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviews */ - public function getSmallAndLightFeePreview(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body); - - /** - * Create request for operation 'getSmallAndLightFeePreview'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getSmallAndLightFeePreviewRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body) : RequestInterface; + public function getSmallAndLightFeePreview(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviews; /** * Operation putSmallAndLightEnrollmentBySellerSKU. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -166,19 +100,5 @@ public function getSmallAndLightFeePreviewRequest(AccessToken $accessToken, stri * * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment */ - public function putSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids); - - /** - * Create request for operation 'putSmallAndLightEnrollmentBySellerSKU'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function putSmallAndLightEnrollmentBySellerSKURequest(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : RequestInterface; + public function putSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment; } diff --git a/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php b/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php index 37a9f0257..305f7cbdc 100644 --- a/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation createProductReviewAndSellerFeedbackSolicitation. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -141,8 +143,6 @@ public function createProductReviewAndSellerFeedbackSolicitation(AccessToken $ac /** * Create request for operation 'createProductReviewAndSellerFeedbackSolicitation'. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -256,6 +256,8 @@ public function createProductReviewAndSellerFeedbackSolicitationRequest(AccessTo /** * Operation getSolicitationActionsForOrder. * + * @param AccessToken $accessToken + * @param string $region * @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) * @@ -352,8 +354,6 @@ public function getSolicitationActionsForOrder(AccessToken $accessToken, string /** * Create request for operation 'getSolicitationActionsForOrder'. * - * @param AccessToken $accessToken - * @param string $region * @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) * diff --git a/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDKInterface.php index 8d09e3da0..281398635 100644 --- a/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Solicitations. @@ -32,8 +31,6 @@ interface SolicitationsSDKInterface /** * Operation createProductReviewAndSellerFeedbackSolicitation. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -42,27 +39,11 @@ interface SolicitationsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse */ - public function createProductReviewAndSellerFeedbackSolicitation(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids); - - /** - * Create request for operation 'createProductReviewAndSellerFeedbackSolicitation'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function createProductReviewAndSellerFeedbackSolicitationRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : RequestInterface; + public function createProductReviewAndSellerFeedbackSolicitation(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse; /** * Operation getSolicitationActionsForOrder. * - * @param AccessToken $accessToken - * @param string $region * @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) * @@ -71,19 +52,5 @@ public function createProductReviewAndSellerFeedbackSolicitationRequest(AccessTo * * @return \AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionsForOrderResponse */ - public function getSolicitationActionsForOrder(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids); - - /** - * Create request for operation 'getSolicitationActionsForOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getSolicitationActionsForOrderRequest(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : RequestInterface; + public function getSolicitationActionsForOrder(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionsForOrderResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php b/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php index 7b2916c82..2f3b39971 100644 --- a/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php @@ -142,8 +142,6 @@ public function createRestrictedDataToken(AccessToken $accessToken, string $regi /** * Create request for operation 'createRestrictedDataToken'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDKInterface.php index c4a67bbb2..33ad5d54a 100644 --- a/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Tokens. @@ -28,8 +27,6 @@ interface TokensSDKInterface /** * Operation createRestrictedDataToken. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) * * @throws ApiException on non-2xx response @@ -37,18 +34,5 @@ interface TokensSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenResponse */ - public function createRestrictedDataToken(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body); - - /** - * Create request for operation 'createRestrictedDataToken'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createRestrictedDataTokenRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body) : RequestInterface; + public function createRestrictedDataToken(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body) : \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php b/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php index a0a4f82be..b13a2316f 100644 --- a/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php +++ b/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php @@ -143,8 +143,6 @@ public function submitInventoryUpdate(AccessToken $accessToken, string $region, /** * Create request for operation 'submitInventoryUpdate'. * - * @param AccessToken $accessToken - * @param string $region * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body (required) * diff --git a/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDKInterface.php b/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDKInterface.php index 011292fda..c9fc62e99 100644 --- a/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Direct Fulfillment Inventory Updates. @@ -28,8 +27,6 @@ interface VendorDirectFulfillmentInventorySDKInterface /** * Operation submitInventoryUpdate. * - * @param AccessToken $accessToken - * @param string $region * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body body (required) * @@ -38,19 +35,5 @@ interface VendorDirectFulfillmentInventorySDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateResponse */ - public function submitInventoryUpdate(AccessToken $accessToken, string $region, string $warehouse_id, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body); - - /** - * Create request for operation 'submitInventoryUpdate'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) - * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitInventoryUpdateRequest(AccessToken $accessToken, string $region, string $warehouse_id, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body) : RequestInterface; + public function submitInventoryUpdate(AccessToken $accessToken, string $region, string $warehouse_id, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php b/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php index 5ff1bdf7d..8f812e3f2 100644 --- a/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php @@ -45,6 +45,8 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory /** * Operation createUploadDestinationForResource. * + * @param AccessToken $accessToken + * @param string $region * @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) @@ -143,8 +145,6 @@ public function createUploadDestinationForResource(AccessToken $accessToken, str /** * Create request for operation 'createUploadDestinationForResource'. * - * @param AccessToken $accessToken - * @param string $region * @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) diff --git a/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDKInterface.php index 62c18bc94..b27a573c7 100644 --- a/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Uploads. @@ -28,8 +27,6 @@ interface UploadsSDKInterface /** * Operation createUploadDestinationForResource. * - * @param AccessToken $accessToken - * @param string $region * @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) @@ -40,21 +37,5 @@ interface UploadsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\Uploads\CreateUploadDestinationResponse */ - public function createUploadDestinationForResource(AccessToken $accessToken, string $region, array $marketplace_ids, string $content_md5, string $resource, ?string $content_type = null); - - /** - * Create request for operation 'createUploadDestinationForResource'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 null|string $content_type The content type of the file to be uploaded. (optional) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function createUploadDestinationForResourceRequest(AccessToken $accessToken, string $region, array $marketplace_ids, string $content_md5, string $resource, ?string $content_type = null) : RequestInterface; + public function createUploadDestinationForResource(AccessToken $accessToken, string $region, array $marketplace_ids, string $content_md5, string $resource, ?string $content_type = null) : \AmazonPHP\SellingPartner\Model\Uploads\CreateUploadDestinationResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php index 8d9c9f322..f98e5250d 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php @@ -142,8 +142,6 @@ public function submitInvoice(AccessToken $accessToken, string $region, \AmazonP /** * Create request for operation 'submitInvoice'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDKInterface.php index d70c104bb..2815e024a 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Direct Fulfillment Payments. @@ -28,8 +27,6 @@ interface VendorDirectFulfillmentPaymentsSDKInterface /** * Operation submitInvoice. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body body (required) * * @throws ApiException on non-2xx response @@ -37,18 +34,5 @@ interface VendorDirectFulfillmentPaymentsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceResponse */ - public function submitInvoice(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body); - - /** - * Create request for operation 'submitInvoice'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitInvoiceRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body) : RequestInterface; + public function submitInvoice(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php index 2514b5a81..c8b993891 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php @@ -142,8 +142,6 @@ public function getOrder(AccessToken $accessToken, string $region, string $purch /** * Create request for operation 'getOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -341,8 +339,6 @@ public function getOrders(AccessToken $accessToken, string $region, \DateTimeInt /** * Create request for operation 'getOrders'. * - * @param AccessToken $accessToken - * @param string $region * @param \DateTimeInterface $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 \DateTimeInterface $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 null|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) @@ -610,8 +606,6 @@ public function submitAcknowledgement(AccessToken $accessToken, string $region, /** * Create request for operation 'submitAcknowledgement'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDKInterface.php index c35413c05..a54320afd 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Direct Fulfillment Orders. @@ -36,8 +35,6 @@ interface VendorDirectFulfillmentOrdersSDKInterface /** * Operation getOrder. * - * @param AccessToken $accessToken - * @param string $region * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) * * @throws ApiException on non-2xx response @@ -45,26 +42,11 @@ interface VendorDirectFulfillmentOrdersSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Order */ - public function getOrder(AccessToken $accessToken, string $region, string $purchase_order_number); - - /** - * Create request for operation 'getOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getOrderRequest(AccessToken $accessToken, string $region, string $purchase_order_number) : RequestInterface; + public function getOrder(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Order; /** * Operation getOrders. * - * @param AccessToken $accessToken - * @param string $region * @param \DateTimeInterface $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 \DateTimeInterface $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 null|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) @@ -79,33 +61,11 @@ public function getOrderRequest(AccessToken $accessToken, string $region, string * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\OrderList */ - public function getOrders(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?string $status = null, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, bool $include_details = true); - - /** - * Create request for operation 'getOrders'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \DateTimeInterface $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 \DateTimeInterface $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 null|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 null|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 null|int $limit The limit to the number of purchase orders returned. (optional) - * @param null|string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param null|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 RequestInterface - */ - public function getOrdersRequest(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?string $status = null, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, bool $include_details = true) : RequestInterface; + public function getOrders(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?string $status = null, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, bool $include_details = true) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\OrderList; /** * Operation submitAcknowledgement. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body body (required) * * @throws ApiException on non-2xx response @@ -113,18 +73,5 @@ public function getOrdersRequest(AccessToken $accessToken, string $region, \Date * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TransactionId */ - public function submitAcknowledgement(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body); - - /** - * Create request for operation 'submitAcknowledgement'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitAcknowledgementRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body) : RequestInterface; + public function submitAcknowledgement(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TransactionId; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php index 5e8a0671b..a62a8f201 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php @@ -142,8 +142,6 @@ public function getPurchaseOrder(AccessToken $accessToken, string $region, strin /** * Create request for operation 'getPurchaseOrder'. * - * @param AccessToken $accessToken - * @param string $region * @param string $purchase_order_number The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -950,8 +948,6 @@ public function submitAcknowledgement(AccessToken $accessToken, string $region, /** * Create request for operation 'submitAcknowledgement'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDKInterface.php index 4cd617211..47fab5576 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Retail Procurement Orders. @@ -40,8 +39,6 @@ interface VendorOrdersSDKInterface /** * Operation getPurchaseOrder. * - * @param AccessToken $accessToken - * @param string $region * @param string $purchase_order_number The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. (required) * * @throws ApiException on non-2xx response @@ -49,20 +46,7 @@ interface VendorOrdersSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrderResponse */ - public function getPurchaseOrder(AccessToken $accessToken, string $region, string $purchase_order_number); - - /** - * Create request for operation 'getPurchaseOrder'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getPurchaseOrderRequest(AccessToken $accessToken, string $region, string $purchase_order_number) : RequestInterface; + public function getPurchaseOrder(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrderResponse; /** * Operation getPurchaseOrders. @@ -87,31 +71,7 @@ public function getPurchaseOrderRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersResponse */ - public function getPurchaseOrders(AccessToken $accessToken, string $region, ?int $limit = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?string $sort_order = null, ?string $next_token = null, ?bool $include_details = null, ?\DateTimeInterface $changed_after = null, ?\DateTimeInterface $changed_before = null, ?string $po_item_state = null, ?bool $is_po_changed = null, ?string $purchase_order_state = null, ?string $ordering_vendor_code = null); - - /** - * Create request for operation 'getPurchaseOrders'. - * - * @param AccessToken $accessToken - * @param string $region - * @param null|int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param null|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 null|bool $include_details When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. (optional) - * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|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 null|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 null|string $purchase_order_state Filters purchase orders based on the purchase order state. (optional) - * @param null|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 RequestInterface - */ - public function getPurchaseOrdersRequest(AccessToken $accessToken, string $region, ?int $limit = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?string $sort_order = null, ?string $next_token = null, ?bool $include_details = null, ?\DateTimeInterface $changed_after = null, ?\DateTimeInterface $changed_before = null, ?string $po_item_state = null, ?bool $is_po_changed = null, ?string $purchase_order_state = null, ?string $ordering_vendor_code = null) : RequestInterface; + public function getPurchaseOrders(AccessToken $accessToken, string $region, ?int $limit = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?string $sort_order = null, ?string $next_token = null, ?bool $include_details = null, ?\DateTimeInterface $changed_after = null, ?\DateTimeInterface $changed_before = null, ?string $po_item_state = null, ?bool $is_po_changed = null, ?string $purchase_order_state = null, ?string $ordering_vendor_code = null) : \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersResponse; /** * Operation getPurchaseOrdersStatus. @@ -137,38 +97,11 @@ public function getPurchaseOrdersRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersStatusResponse */ - public function getPurchaseOrdersStatus(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $updated_after = null, ?\DateTimeInterface $updated_before = null, ?string $purchase_order_number = null, ?string $purchase_order_status = null, ?string $item_confirmation_status = null, ?string $item_receive_status = null, ?string $ordering_vendor_code = null, ?string $ship_to_party_id = null); - - /** - * Create request for operation 'getPurchaseOrdersStatus'. - * - * @param AccessToken $accessToken - * @param string $region - * @param null|int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param null|string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param null|string $next_token Used for pagination when there are more purchase orders than the specified result size limit. (optional) - * @param null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|\DateTimeInterface $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 null|string $purchase_order_number Provides purchase order status for the specified purchase order number. (optional) - * @param null|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 null|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 null|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 null|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 null|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 RequestInterface - */ - public function getPurchaseOrdersStatusRequest(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $updated_after = null, ?\DateTimeInterface $updated_before = null, ?string $purchase_order_number = null, ?string $purchase_order_status = null, ?string $item_confirmation_status = null, ?string $item_receive_status = null, ?string $ordering_vendor_code = null, ?string $ship_to_party_id = null) : RequestInterface; + public function getPurchaseOrdersStatus(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $updated_after = null, ?\DateTimeInterface $updated_before = null, ?string $purchase_order_number = null, ?string $purchase_order_status = null, ?string $item_confirmation_status = null, ?string $item_receive_status = null, ?string $ordering_vendor_code = null, ?string $ship_to_party_id = null) : \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersStatusResponse; /** * Operation submitAcknowledgement. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body body (required) * * @throws ApiException on non-2xx response @@ -176,18 +109,5 @@ public function getPurchaseOrdersStatusRequest(AccessToken $accessToken, string * * @return \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementResponse */ - public function submitAcknowledgement(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body); - - /** - * Create request for operation 'submitAcknowledgement'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitAcknowledgementRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body) : RequestInterface; + public function submitAcknowledgement(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body) : \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php index 29fe85320..6ced34e60 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php @@ -142,8 +142,6 @@ public function submitInvoices(AccessToken $accessToken, string $region, \Amazon /** * Create request for operation 'submitInvoices'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDKInterface.php index 3e1bd9fd7..b9329569d 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Retail Procurement Payments. @@ -28,8 +27,6 @@ interface VendorInvoicesSDKInterface /** * Operation submitInvoices. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body body (required) * * @throws ApiException on non-2xx response @@ -37,18 +34,5 @@ interface VendorInvoicesSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesResponse */ - public function submitInvoices(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body); - - /** - * Create request for operation 'submitInvoices'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitInvoicesRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body) : RequestInterface; + public function submitInvoices(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body) : \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php index 2235be589..0f99dccaa 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php @@ -142,8 +142,6 @@ public function submitShipmentConfirmations(AccessToken $accessToken, string $re /** * Create request for operation 'submitShipmentConfirmations'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php index a9df1805f..17a6efc38 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Retail Procurement Shipments. @@ -28,8 +27,6 @@ interface VendorShipmentsSDKInterface /** * Operation submitShipmentConfirmations. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body body (required) * * @throws ApiException on non-2xx response @@ -37,18 +34,5 @@ interface VendorShipmentsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse */ - public function submitShipmentConfirmations(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body); - - /** - * Create request for operation 'submitShipmentConfirmations'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitShipmentConfirmationsRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body) : RequestInterface; + public function submitShipmentConfirmations(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php index 26a1a62d7..15fc590cb 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php @@ -142,8 +142,6 @@ public function getShippingLabel(AccessToken $accessToken, string $region, strin /** * Create request for operation 'getShippingLabel'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Exception\InvalidArgumentException @@ -343,8 +341,6 @@ public function getShippingLabels(AccessToken $accessToken, string $region, \Dat /** * Create request for operation 'getShippingLabels'. * - * @param AccessToken $accessToken - * @param string $region * @param \DateTimeInterface $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 \DateTimeInterface $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 null|string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) @@ -594,8 +590,6 @@ public function submitShippingLabelRequest(AccessToken $accessToken, string $reg /** * Create request for operation 'submitShippingLabelRequest'. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDKInterface.php index 605e3de43..8bab41e73 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Direct Fulfillment Shipping. @@ -36,8 +35,6 @@ interface VendorDirectFulfillmentShippingSDKInterface /** * Operation getShippingLabel. * - * @param AccessToken $accessToken - * @param string $region * @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 ApiException on non-2xx response @@ -45,26 +42,11 @@ interface VendorDirectFulfillmentShippingSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabel */ - public function getShippingLabel(AccessToken $accessToken, string $region, string $purchase_order_number); - - /** - * Create request for operation 'getShippingLabel'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getShippingLabelRequest(AccessToken $accessToken, string $region, string $purchase_order_number) : RequestInterface; + public function getShippingLabel(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabel; /** * Operation getShippingLabels. * - * @param AccessToken $accessToken - * @param string $region * @param \DateTimeInterface $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 \DateTimeInterface $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 null|string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) @@ -77,31 +59,11 @@ public function getShippingLabelRequest(AccessToken $accessToken, string $region * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabelList */ - public function getShippingLabels(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?int $limit = null, string $sort_order = 'ASC', ?string $next_token = null); - - /** - * Create request for operation 'getShippingLabels'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \DateTimeInterface $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 \DateTimeInterface $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 null|string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param null|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 null|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 RequestInterface - */ - public function getShippingLabelsRequest(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?int $limit = null, string $sort_order = 'ASC', ?string $next_token = null) : RequestInterface; + public function getShippingLabels(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?int $limit = null, string $sort_order = 'ASC', ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabelList; /** * Operation submitShippingLabelRequest. * - * @param AccessToken $accessToken - * @param string $region * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body body (required) * * @throws ApiException on non-2xx response @@ -109,18 +71,5 @@ public function getShippingLabelsRequest(AccessToken $accessToken, string $regio * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference */ - public function submitShippingLabelRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body); - - /** - * Create request for operation 'submitShippingLabelRequest'. - * - * @param AccessToken $accessToken - * @param string $region - * @param \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function submitShippingLabelRequestRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body) : RequestInterface; + public function submitShippingLabelRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php index 307b78d70..a7cac0f19 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php @@ -142,8 +142,6 @@ public function getTransactionStatus(AccessToken $accessToken, string $region, s /** * Create request for operation 'getTransactionStatus'. * - * @param AccessToken $accessToken - * @param string $region * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDKInterface.php index e1509805b..b8e99807f 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Direct Fulfillment Transaction Status. @@ -28,8 +27,6 @@ interface VendorDirectFulfillmentTransactionsSDKInterface /** * Operation getTransactionStatus. * - * @param AccessToken $accessToken - * @param string $region * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) * * @throws ApiException on non-2xx response @@ -37,18 +34,5 @@ interface VendorDirectFulfillmentTransactionsSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentTransactions\TransactionStatus */ - public function getTransactionStatus(AccessToken $accessToken, string $region, string $transaction_id); - - /** - * Create request for operation 'getTransactionStatus'. - * - * @param AccessToken $accessToken - * @param string $region - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws InvalidArgumentException - * - * @return RequestInterface - */ - public function getTransactionStatusRequest(AccessToken $accessToken, string $region, string $transaction_id) : RequestInterface; + public function getTransactionStatus(AccessToken $accessToken, string $region, string $transaction_id) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentTransactions\TransactionStatus; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php index efdfeb0f8..fae602797 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php @@ -142,8 +142,6 @@ public function getTransaction(AccessToken $accessToken, string $region, string /** * Create request for operation 'getTransaction'. * - * @param AccessToken $accessToken - * @param string $region * @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 \AmazonPHP\SellingPartner\Exception\InvalidArgumentException diff --git a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDKInterface.php index 34142c86e..cc66eb25d 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDKInterface.php @@ -5,7 +5,6 @@ use AmazonPHP\SellingPartner\AccessToken; use AmazonPHP\SellingPartner\Exception\ApiException; use AmazonPHP\SellingPartner\Exception\InvalidArgumentException; -use Psr\Http\Message\RequestInterface; /** * Selling Partner API for Retail Procurement Transaction Status. @@ -28,8 +27,6 @@ interface VendorTransactionStatusSDKInterface /** * Operation getTransaction. * - * @param AccessToken $accessToken - * @param string $region * @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 ApiException on non-2xx response @@ -37,18 +34,5 @@ interface VendorTransactionStatusSDKInterface * * @return \AmazonPHP\SellingPartner\Model\VendorTransactionStatus\GetTransactionResponse */ - public function getTransaction(AccessToken $accessToken, string $region, string $transaction_id); - - /** - * Create request for operation 'getTransaction'. - * - * @param AccessToken $accessToken - * @param string $region - * @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 RequestInterface - */ - public function getTransactionRequest(AccessToken $accessToken, string $region, string $transaction_id) : RequestInterface; + public function getTransaction(AccessToken $accessToken, string $region, string $transaction_id) : \AmazonPHP\SellingPartner\Model\VendorTransactionStatus\GetTransactionResponse; } diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php index b70505c0b..abb054130 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php @@ -252,7 +252,7 @@ public function setAsin(string $asin) : self * * @return null|object */ - public function getAttributes() : ?object + public function getAttributes() : ?array { return $this->container['attributes']; } diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php index f15b02dd0..6992d7d5d 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php @@ -274,7 +274,7 @@ public function setRequirements(?string $requirements) : self /** * Gets attributes. */ - public function getAttributes() : object + public function getAttributes() : ?array { return $this->container['attributes']; } @@ -282,7 +282,7 @@ public function getAttributes() : object /** * Sets attributes. * - * @param object $attributes JSON object containing structured listings item attribute data keyed by attribute name + * @param mixed[] $attributes * * @return self */ diff --git a/src/AmazonPHP/SellingPartner/ObjectSerializer.php b/src/AmazonPHP/SellingPartner/ObjectSerializer.php index 0b8e2330e..2ea01af51 100644 --- a/src/AmazonPHP/SellingPartner/ObjectSerializer.php +++ b/src/AmazonPHP/SellingPartner/ObjectSerializer.php @@ -243,14 +243,14 @@ public static function serializeCollection(array $collection, string $style, boo } /** - * @template T + * @psalm-template T * Deserialize a JSON string into an object. * - * @param mixed $data object or primitive to be deserialized - * @param T $class class name is passed as a string - * @param null|string[] $httpHeaders HTTP headers + * @psalm-param mixed $data object or primitive to be deserialized + * @psalm-param T $class class name is passed as a string + * @psalm-param null|string[] $httpHeaders HTTP headers * - * @return T + * @psalm-return T */ public static function deserialize(Configuration $configuration, $data, string $class, array $httpHeaders = null) { diff --git a/tools/composer.json b/tools/composer.json index 5c0dde6b4..d6ee54efc 100644 --- a/tools/composer.json +++ b/tools/composer.json @@ -7,6 +7,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3.1", "phpunit/phpunit": "^9.4", - "rector/rector": "0.13.10" + "rector/rector": "0.13.10", + "vimeo/psalm": "^4.26" } } diff --git a/tools/composer.lock b/tools/composer.lock index 8c21dec77..84d7eb7f4 100644 --- a/tools/composer.lock +++ b/tools/composer.lock @@ -4,9 +4,248 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bb7a4809085a08b41b9f4ca015be35fa", + "content-hash": "5ffe2d2e0ea0fd23f535521250abda5c", "packages": [], "packages-dev": [ + { + "name": "amphp/amp", + "version": "v2.6.2", + "source": { + "type": "git", + "url": "https://github.com/amphp/amp.git", + "reference": "9d5100cebffa729aaffecd3ad25dc5aeea4f13bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/amp/zipball/9d5100cebffa729aaffecd3ad25dc5aeea4f13bb", + "reference": "9d5100cebffa729aaffecd3ad25dc5aeea4f13bb", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "dev-master", + "amphp/phpunit-util": "^1", + "ext-json": "*", + "jetbrains/phpstorm-stubs": "^2019.3", + "phpunit/phpunit": "^7 | ^8 | ^9", + "psalm/phar": "^3.11@dev", + "react/promise": "^2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "files": [ + "lib/functions.php", + "lib/Internal/functions.php" + ], + "psr-4": { + "Amp\\": "lib" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Lowrey", + "email": "rdlowrey@php.net" + }, + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Bob Weinand", + "email": "bobwei9@hotmail.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "A non-blocking concurrency framework for PHP applications.", + "homepage": "https://amphp.org/amp", + "keywords": [ + "async", + "asynchronous", + "awaitable", + "concurrency", + "event", + "event-loop", + "future", + "non-blocking", + "promise" + ], + "support": { + "irc": "irc://irc.freenode.org/amphp", + "issues": "https://github.com/amphp/amp/issues", + "source": "https://github.com/amphp/amp/tree/v2.6.2" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2022-02-20T17:52:18+00:00" + }, + { + "name": "amphp/byte-stream", + "version": "v1.8.1", + "source": { + "type": "git", + "url": "https://github.com/amphp/byte-stream.git", + "reference": "acbd8002b3536485c997c4e019206b3f10ca15bd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/byte-stream/zipball/acbd8002b3536485c997c4e019206b3f10ca15bd", + "reference": "acbd8002b3536485c997c4e019206b3f10ca15bd", + "shasum": "" + }, + "require": { + "amphp/amp": "^2", + "php": ">=7.1" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "dev-master", + "amphp/phpunit-util": "^1.4", + "friendsofphp/php-cs-fixer": "^2.3", + "jetbrains/phpstorm-stubs": "^2019.3", + "phpunit/phpunit": "^6 || ^7 || ^8", + "psalm/phar": "^3.11.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "files": [ + "lib/functions.php" + ], + "psr-4": { + "Amp\\ByteStream\\": "lib" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "A stream abstraction to make working with non-blocking I/O simple.", + "homepage": "http://amphp.org/byte-stream", + "keywords": [ + "amp", + "amphp", + "async", + "io", + "non-blocking", + "stream" + ], + "support": { + "irc": "irc://irc.freenode.org/amphp", + "issues": "https://github.com/amphp/byte-stream/issues", + "source": "https://github.com/amphp/byte-stream/tree/v1.8.1" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2021-03-30T17:13:30+00:00" + }, + { + "name": "composer/package-versions-deprecated", + "version": "1.11.99.5", + "source": { + "type": "git", + "url": "https://github.com/composer/package-versions-deprecated.git", + "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d", + "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1.0 || ^2.0", + "php": "^7 || ^8" + }, + "replace": { + "ocramius/package-versions": "1.11.99" + }, + "require-dev": { + "composer/composer": "^1.9.3 || ^2.0@dev", + "ext-zip": "^1.13", + "phpunit/phpunit": "^6.5 || ^7" + }, + "type": "composer-plugin", + "extra": { + "class": "PackageVersions\\Installer", + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "PackageVersions\\": "src/PackageVersions" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be" + } + ], + "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", + "support": { + "issues": "https://github.com/composer/package-versions-deprecated/issues", + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-01-17T14:14:24+00:00" + }, { "name": "composer/pcre", "version": "3.0.0", @@ -225,6 +464,43 @@ ], "time": "2022-02-25T21:32:43+00:00" }, + { + "name": "dnoegel/php-xdg-base-dir", + "version": "v0.1.1", + "source": { + "type": "git", + "url": "https://github.com/dnoegel/php-xdg-base-dir.git", + "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", + "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "require-dev": { + "phpunit/phpunit": "~7.0|~6.0|~5.0|~4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "XdgBaseDir\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "implementation of xdg base directory specification for php", + "support": { + "issues": "https://github.com/dnoegel/php-xdg-base-dir/issues", + "source": "https://github.com/dnoegel/php-xdg-base-dir/tree/v0.1.1" + }, + "time": "2019-12-04T15:06:13+00:00" + }, { "name": "doctrine/annotations", "version": "1.13.3", @@ -444,6 +720,107 @@ ], "time": "2022-02-28T11:07:21+00:00" }, + { + "name": "felixfbecker/advanced-json-rpc", + "version": "v3.2.1", + "source": { + "type": "git", + "url": "https://github.com/felixfbecker/php-advanced-json-rpc.git", + "reference": "b5f37dbff9a8ad360ca341f3240dc1c168b45447" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/b5f37dbff9a8ad360ca341f3240dc1c168b45447", + "reference": "b5f37dbff9a8ad360ca341f3240dc1c168b45447", + "shasum": "" + }, + "require": { + "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", + "php": "^7.1 || ^8.0", + "phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "AdvancedJsonRpc\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "ISC" + ], + "authors": [ + { + "name": "Felix Becker", + "email": "felix.b@outlook.com" + } + ], + "description": "A more advanced JSONRPC implementation", + "support": { + "issues": "https://github.com/felixfbecker/php-advanced-json-rpc/issues", + "source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/v3.2.1" + }, + "time": "2021-06-11T22:34:44+00:00" + }, + { + "name": "felixfbecker/language-server-protocol", + "version": "v1.5.2", + "source": { + "type": "git", + "url": "https://github.com/felixfbecker/php-language-server-protocol.git", + "reference": "6e82196ffd7c62f7794d778ca52b69feec9f2842" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/6e82196ffd7c62f7794d778ca52b69feec9f2842", + "reference": "6e82196ffd7c62f7794d778ca52b69feec9f2842", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpstan/phpstan": "*", + "squizlabs/php_codesniffer": "^3.1", + "vimeo/psalm": "^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "LanguageServerProtocol\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "ISC" + ], + "authors": [ + { + "name": "Felix Becker", + "email": "felix.b@outlook.com" + } + ], + "description": "PHP classes for the Language Server Protocol", + "keywords": [ + "language", + "microsoft", + "php", + "server" + ], + "support": { + "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", + "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.2" + }, + "time": "2022-03-02T22:36:06+00:00" + }, { "name": "friendsofphp/php-cs-fixer", "version": "v3.9.5", @@ -592,6 +969,57 @@ ], "time": "2022-03-03T13:19:32+00:00" }, + { + "name": "netresearch/jsonmapper", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/cweiske/jsonmapper.git", + "reference": "8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d", + "reference": "8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-spl": "*", + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "~7.5 || ~8.0 || ~9.0", + "squizlabs/php_codesniffer": "~3.5" + }, + "type": "library", + "autoload": { + "psr-0": { + "JsonMapper": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "OSL-3.0" + ], + "authors": [ + { + "name": "Christian Weiske", + "email": "cweiske@cweiske.de", + "homepage": "http://github.com/cweiske/jsonmapper/", + "role": "Developer" + } + ], + "description": "Map nested JSON structures onto PHP classes", + "support": { + "email": "cweiske@cweiske.de", + "issues": "https://github.com/cweiske/jsonmapper/issues", + "source": "https://github.com/cweiske/jsonmapper/tree/v4.0.0" + }, + "time": "2020-12-01T19:48:11+00:00" + }, { "name": "nikic/php-parser", "version": "v4.14.0", @@ -648,6 +1076,59 @@ }, "time": "2022-05-31T20:59:12+00:00" }, + { + "name": "openlss/lib-array2xml", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/nullivex/lib-array2xml.git", + "reference": "a91f18a8dfc69ffabe5f9b068bc39bb202c81d90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nullivex/lib-array2xml/zipball/a91f18a8dfc69ffabe5f9b068bc39bb202c81d90", + "reference": "a91f18a8dfc69ffabe5f9b068bc39bb202c81d90", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "type": "library", + "autoload": { + "psr-0": { + "LSS": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Bryan Tong", + "email": "bryan@nullivex.com", + "homepage": "https://www.nullivex.com" + }, + { + "name": "Tony Butler", + "email": "spudz76@gmail.com", + "homepage": "https://www.nullivex.com" + } + ], + "description": "Array2XML conversion library credit to lalit.org", + "homepage": "https://www.nullivex.com", + "keywords": [ + "array", + "array conversion", + "xml", + "xml conversion" + ], + "support": { + "issues": "https://github.com/nullivex/lib-array2xml/issues", + "source": "https://github.com/nullivex/lib-array2xml/tree/master" + }, + "time": "2019-03-29T20:06:56+00:00" + }, { "name": "phar-io/manifest", "version": "2.0.3", @@ -4178,6 +4659,113 @@ ], "time": "2021-07-28T10:34:58+00:00" }, + { + "name": "vimeo/psalm", + "version": "4.26.0", + "source": { + "type": "git", + "url": "https://github.com/vimeo/psalm.git", + "reference": "6998fabb2bf528b65777bf9941920888d23c03ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/6998fabb2bf528b65777bf9941920888d23c03ac", + "reference": "6998fabb2bf528b65777bf9941920888d23c03ac", + "shasum": "" + }, + "require": { + "amphp/amp": "^2.4.2", + "amphp/byte-stream": "^1.5", + "composer/package-versions-deprecated": "^1.8.0", + "composer/semver": "^1.4 || ^2.0 || ^3.0", + "composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0", + "dnoegel/php-xdg-base-dir": "^0.1.1", + "ext-ctype": "*", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-tokenizer": "*", + "felixfbecker/advanced-json-rpc": "^3.0.3", + "felixfbecker/language-server-protocol": "^1.5", + "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", + "nikic/php-parser": "^4.13", + "openlss/lib-array2xml": "^1.0", + "php": "^7.1|^8", + "sebastian/diff": "^3.0 || ^4.0", + "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", + "symfony/polyfill-php80": "^1.25", + "webmozart/path-util": "^2.3" + }, + "provide": { + "psalm/psalm": "self.version" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2", + "brianium/paratest": "^4.0||^6.0", + "ext-curl": "*", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpdocumentor/reflection-docblock": "^5", + "phpmyadmin/sql-parser": "5.1.0||dev-master", + "phpspec/prophecy": ">=1.9.0", + "phpunit/phpunit": "^9.0", + "psalm/plugin-phpunit": "^0.16", + "slevomat/coding-standard": "^7.0", + "squizlabs/php_codesniffer": "^3.5", + "symfony/process": "^4.3 || ^5.0 || ^6.0", + "weirdan/prophecy-shim": "^1.0 || ^2.0" + }, + "suggest": { + "ext-curl": "In order to send data to shepherd", + "ext-igbinary": "^2.0.5 is required, used to serialize caching data" + }, + "bin": [ + "psalm", + "psalm-language-server", + "psalm-plugin", + "psalm-refactor", + "psalter" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev", + "dev-3.x": "3.x-dev", + "dev-2.x": "2.x-dev", + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php", + "src/spl_object_id.php" + ], + "psr-4": { + "Psalm\\": "src/Psalm/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matthew Brown" + } + ], + "description": "A static analysis tool for finding errors in PHP applications", + "keywords": [ + "code", + "inspection", + "php" + ], + "support": { + "issues": "https://github.com/vimeo/psalm/issues", + "source": "https://github.com/vimeo/psalm/tree/4.26.0" + }, + "time": "2022-07-31T13:10:26+00:00" + }, { "name": "webmozart/assert", "version": "1.11.0", @@ -4235,6 +4823,57 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" + }, + { + "name": "webmozart/path-util", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/path-util.git", + "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", + "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "webmozart/assert": "~1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\PathUtil\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", + "support": { + "issues": "https://github.com/webmozart/path-util/issues", + "source": "https://github.com/webmozart/path-util/tree/2.3.0" + }, + "abandoned": "symfony/filesystem", + "time": "2015-12-17T08:42:14+00:00" } ], "aliases": [],