Skip to content

Commit

Permalink
Change CreateFeedDocumentResult to CreateFeedDocumentResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaaaan committed Aug 17, 2021
1 parent 5b44e40 commit e4910f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use PhpOffice\PhpSpreadsheet\IOFactory;
use RuntimeException;

use SellingPartnerApi\Model\Feeds\CreateFeedDocumentResult;
use SellingPartnerApi\Model\Feeds\CreateFeedDocumentResponse;
use SellingPartnerApi\Model\Feeds\FeedDocument;
use SellingPartnerApi\Model\Reports\ReportDocument;

Expand All @@ -25,7 +25,7 @@ class Document
public $failedFeedRecords = null;

/**
* @param Model\(Reports\ReportDocument|Feeds\FeedDocument|Feeds\CreateFeedDocumentResult) $documentInfo
* @param Model\(Reports\ReportDocument|Feeds\FeedDocument|Feeds\CreateFeedDocumentResponse) $documentInfo
* The payload of a successful call to getReportDocument, createFeedDocument, or getFeedDocument
* @param ?array['contentType' => string, 'name' => string] $documentType
* Not required if $documentInfo is of type FeedDocument. Otherwise, should be one
Expand All @@ -36,9 +36,9 @@ public function __construct(object $documentInfo, ?array $documentType = ReportT
if (!(
$documentInfo instanceof ReportDocument ||
$documentInfo instanceof FeedDocument ||
$documentInfo instanceof CreateFeedDocumentResult
$documentInfo instanceof CreateFeedDocumentResponse
)) {
$msg = "documentInfo must be one of the following types: Model\Feeds\CreateFeedDocumentResult, Model\Feeds\FeedDocument, Model\Reports\ReportDocument";
$msg = "documentInfo must be one of the following types: Model\Feeds\CreateFeedDocumentResponse, Model\Feeds\FeedDocument, Model\Reports\ReportDocument";
throw new RuntimeException($msg);
}

Expand Down

0 comments on commit e4910f1

Please sign in to comment.