feat: turn search_trips into the website's travel search
This commit is contained in:
1 parent
bfdedefae3
commit
4ab2714bde
12 files changed
+693
-151
No files matched your search
@@ -4,8 +4,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Model\Chatbot;
|
||||
|
||||
use App\Enum\HotelType;
|
||||
use App\Enum\RoomType;
|
||||
|
||||
/**
|
||||
* The filters of the search_trips tool, validated.
|
||||
* The filters of the search_trips tool, validated. They mirror the website's travel search:
|
||||
* the travel period is matched by containment (start on or after `dateFrom`, end on or
|
||||
* before `dateTo`), prices apply to the "ab" price.
|
||||
*/
|
||||
final readonly class TripCriteria
|
||||
{
|
||||
@@ -16,11 +21,18 @@ final readonly class TripCriteria
|
||||
public ?string $country = null,
|
||||
public ?string $region = null,
|
||||
public ?string $concept = null,
|
||||
public ?float $maxPrice = null,
|
||||
public ?float $priceMin = null,
|
||||
public ?float $priceMax = null,
|
||||
public ?int $persons = null,
|
||||
public ?HotelType $accommodation = null,
|
||||
public ?string $board = null,
|
||||
public ?RoomType $roomType = null,
|
||||
public ?int $nightsMin = null,
|
||||
public ?int $nightsMax = null,
|
||||
public ?bool $bus = null,
|
||||
public ?bool $daytrip = null,
|
||||
public ?string $site = null,
|
||||
public int $limit = 5,
|
||||
public int $limit = 10,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user