add shopware store-api
This commit is contained in:
29
src/Commerce/Dto/CommerceSearchQuery.php
Normal file
29
src/Commerce/Dto/CommerceSearchQuery.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Commerce\Dto;
|
||||
|
||||
final readonly class CommerceSearchQuery
|
||||
{
|
||||
/**
|
||||
* @param string[] $colors
|
||||
* @param string[] $sizes
|
||||
* @param string[] $properties
|
||||
*/
|
||||
public function __construct(
|
||||
public string $originalPrompt,
|
||||
public string $normalizedPrompt,
|
||||
public string $searchText,
|
||||
public ?string $category = null,
|
||||
public ?string $brand = null,
|
||||
public array $colors = [],
|
||||
public array $sizes = [],
|
||||
public array $properties = [],
|
||||
public ?float $priceMin = null,
|
||||
public ?float $priceMax = null,
|
||||
public string $intent = 'none',
|
||||
public bool $needsLlmFallback = false,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user