Skip to content

Commit

Permalink
Fixed fulfillment inbound models return types (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
owsiakl authored Sep 1, 2022
1 parent 74cb749 commit 4a4c61f
Show file tree
Hide file tree
Showing 37 changed files with 13 additions and 389 deletions.
6 changes: 6 additions & 0 deletions rector-php.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
new NullableReturnTypeDeclaration(NonPartneredSmallParcelPackageOutput::class, 'getCarrierName'),
new NullableReturnTypeDeclaration(NonPartneredSmallParcelPackageOutput::class, 'getTrackingId'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getCarrierName'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getTotalWeight'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getPreviewPickupDate'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getPreviewDeliveryDate'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getPreviewFreightClass'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getAmazonReferenceId'),
new NullableReturnTypeDeclaration(PartneredLtlDataOutput::class, 'getIsBillOfLadingAvailable'),
new NullableReturnTypeDeclaration(Pallet::class, 'getIsStacked'),
new NullableReturnTypeDeclaration(NonPartneredLtlDataOutput::class, 'getCarrierName'),
new NullableReturnTypeDeclaration(NonPartneredLtlDataOutput::class, 'getProNumber'),
Expand Down
40 changes: 0 additions & 40 deletions src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public function __construct(ClientInterface $client, HttpFactory $requestFactory
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @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) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse
{
Expand Down Expand Up @@ -145,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)
*
Expand Down Expand Up @@ -268,8 +264,6 @@ public function createContentDocumentRequest(AccessToken $accessToken, string $r
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @return \AmazonPHP\SellingPartner\Model\APlus\GetContentDocumentResponse
*/
public function getContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, array $included_data_set) : \AmazonPHP\SellingPartner\Model\APlus\GetContentDocumentResponse
{
Expand Down Expand Up @@ -361,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)
Expand Down Expand Up @@ -511,8 +503,6 @@ public function getContentDocumentRequest(AccessToken $accessToken, string $regi
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @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) : \AmazonPHP\SellingPartner\Model\APlus\ListContentDocumentAsinRelationsResponse
{
Expand Down Expand Up @@ -604,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)
Expand Down Expand Up @@ -766,8 +754,6 @@ public function listContentDocumentAsinRelationsRequest(AccessToken $accessToken
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentApprovalSubmissionResponse
*/
public function postContentDocumentApprovalSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentApprovalSubmissionResponse
{
Expand Down Expand Up @@ -859,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)
*
Expand Down Expand Up @@ -987,8 +971,6 @@ public function postContentDocumentApprovalSubmissionRequest(AccessToken $access
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @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) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsResponse
{
Expand Down Expand Up @@ -1080,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)
Expand Down Expand Up @@ -1223,8 +1203,6 @@ public function postContentDocumentAsinRelationsRequest(AccessToken $accessToken
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentSuspendSubmissionResponse
*/
public function postContentDocumentSuspendSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentSuspendSubmissionResponse
{
Expand Down Expand Up @@ -1316,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)
*
Expand Down Expand Up @@ -1443,8 +1419,6 @@ public function postContentDocumentSuspendSubmissionRequest(AccessToken $accessT
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @return \AmazonPHP\SellingPartner\Model\APlus\SearchContentDocumentsResponse
*/
public function searchContentDocuments(AccessToken $accessToken, string $region, string $marketplace_id, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\SearchContentDocumentsResponse
{
Expand Down Expand Up @@ -1536,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)
*
Expand Down Expand Up @@ -1656,8 +1628,6 @@ public function searchContentDocumentsRequest(AccessToken $accessToken, string $
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @return \AmazonPHP\SellingPartner\Model\APlus\SearchContentPublishRecordsResponse
*/
public function searchContentPublishRecords(AccessToken $accessToken, string $region, string $marketplace_id, string $asin, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\SearchContentPublishRecordsResponse
{
Expand Down Expand Up @@ -1749,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)
Expand Down Expand Up @@ -1889,8 +1857,6 @@ public function searchContentPublishRecordsRequest(AccessToken $accessToken, str
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @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) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse
{
Expand Down Expand Up @@ -1982,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)
Expand Down Expand Up @@ -2126,8 +2090,6 @@ public function updateContentDocumentRequest(AccessToken $accessToken, string $r
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
*
* @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) : \AmazonPHP\SellingPartner\Model\APlus\ValidateContentDocumentAsinRelationsResponse
{
Expand Down Expand Up @@ -2219,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)
Expand Down
Loading

0 comments on commit 4a4c61f

Please sign in to comment.