private function getEligibleProducts(string $type, string $entityId): array
    {
        $products = [];
        foreach ($this->getRawList($this->client->getUriFactory()->createUri("/mint/organizations/{$this->organization}/{$type}/{$entityId}/eligible-products")) as $item) {
            /** @var \Apigee\Edge\Api\Monetization\Entity\ApiProductInterface $product */
            $product = $this->entitySerializer->denormalize($item, $this->getEntityClass());
            $products[$product->id()] = $product;
        }

        return $products;
    }
private function getEligibleProducts(string $type, string $entityId): array
    {
        $products = [];
        foreach ($this->getRawList($this->client->getUriFactory()->createUri("/mint/organizations/{$this->organization}/{$type}/{$entityId}/eligible-products")) as $item) {
            /** @var \Apigee\Edge\Api\Monetization\Entity\ApiProductInterface $product */
            $product = $this->entitySerializer->denormalize($item, $this->getEntityClass());
            $products[$product->id()] = $product;
        }

        return $products;
    }
private function getEligibleProducts ( string $ type , string $ entityId ) : array { $ products = [ ] ; foreach ( $ this -> getRawList ( $ this -> client -> getUriFactory ( ) -> createUri ( "/mint/organizations/{$this->organization}/{$type}/{$entityId}/eligible-products" ) ) as $ item ) { /** @var \Apigee\Edge\Api\Monetization\Entity\ApiProductInterface $product */ $ product = $ this -> entitySerializer -> denormalize ( $ item , $ this -> getEntityClass ( ) ) ; $ products [ $ product -> id ( ) ] = $ product ; } return $ products ; }
Returns eligible products of a developer or a company.

@param string $type
Either "developers" or "companies".
@param string $entityId
Id of a developer or company.

@return \Apigee\Edge\Api\Monetization\Entity\ApiProductInterface[]
List of eligible API products.

@psalm-suppress PossiblyNullArrayOffset id() is not null.
Returns eligible products of a developer or a company .