'xml|csv|xlsx'])] public function znzB2BFeed( ZNZFeedUtil $feedUtil, string $category, string $hash, string $format, string $currency, string $type, #[MapQueryParameter] ?string $language = null, #[MapQueryParameter] bool $download = false, ): Response { $languageContext = Contexts::get(LanguageContext::class); if (!$language || !($languageContext->getSupported()[$language] ?? false)) { $language = $languageContext->getActiveId(); } $response = $feedUtil->getB2BFeed( new B2BFeedDefinition( category: $category, userHash: $hash, format: $format, currency: Contexts::get(CurrencyContext::class)->getOrDefault($currency)->getId(), type: $type, language: $language, ), $download ); if (!$response) { throw new NotFoundHttpException('Feed not found'); } return $response; } }