diff --git a/lib/Api/CatalogItemsV20220401Api.php b/lib/Api/CatalogItemsV20220401Api.php index 17e34da4f..3024bf70e 100644 --- a/lib/Api/CatalogItemsV20220401Api.php +++ b/lib/Api/CatalogItemsV20220401Api.php @@ -853,15 +853,15 @@ public function searchCatalogItemsRequest($marketplace_ids, $identifiers = null, 'Missing the required parameter $marketplace_ids when calling searchCatalogItems' ); } - if (count($marketplace_ids) > 1) { + if (count( explode(",", $marketplace_ids) ) > 1) { throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling CatalogItemsV20220401Api.searchCatalogItems, number of items must be less than or equal to 1.'); } - if ($identifiers !== null && count($identifiers) > 20) { + if ($identifiers !== null && count( explode(",", $identifiers) ) > 20) { throw new \InvalidArgumentException('invalid value for "$identifiers" when calling CatalogItemsV20220401Api.searchCatalogItems, number of items must be less than or equal to 20.'); } - if ($keywords !== null && count($keywords) > 20) { + if ($keywords !== null && count( explode(",", $keywords) ) > 20) { throw new \InvalidArgumentException('invalid value for "$keywords" when calling CatalogItemsV20220401Api.searchCatalogItems, number of items must be less than or equal to 20.'); }