feat: additional status
This commit is contained in:
1 parent
dc86e715cb
commit
2c381ee741
20 files changed
+588
-64
No files matched your search
@@ -88,7 +88,7 @@ final readonly class AccommodationBookingApiResponse
|
||||
public function __construct(AccommodationBooking $booking, ?array $priceBreakdown)
|
||||
{
|
||||
$this->uuid = $booking->getUuid();
|
||||
$this->status = $booking->isInquiry() ? 'inquiry' : 'booking';
|
||||
$this->status = $booking->getStatus()->value;
|
||||
$this->dateFrom = $booking->getDateFrom();
|
||||
$this->dateTo = $booking->getDateTo();
|
||||
$this->nights = $booking->getNights();
|
||||
|
||||
Reference in new issue
Block a user