$context->request(['street' => 'Teststraße 1', 'postal_code' => '18225', 'city' => 'Kühlungsborn', 'country' => 'DE'])), new ScenarioEvent('Sie senden das Angebot (falls es nicht automatisch ging)', function (SandboxContext $context): void { $booking = $context->booking->fresh(); if ($booking->status === BookingStatus::Reserved && $booking->offer_version === 0 && $booking->process()->inquiryAnswer() === InquiryAnswer::Offer) { app(SendOffer::class)->handle($booking); } }), new ScenarioEvent('Gast nimmt das Angebot an', function (SandboxContext $context): void { $booking = $context->booking->fresh(); if ($booking->status === BookingStatus::OfferSent) { app(AcceptOffer::class)->handle($booking, $booking->offer_version); } }), new ScenarioEvent('Zwei Tage vor der Anreise', fn (SandboxContext $context) => $context->travelTo($context->arrival()->subDays(2)->setTime(9, 0))), new ScenarioEvent('Drei Tage nach der Abreise', fn (SandboxContext $context) => $context->travelTo($context->departure()->addDays(3)->setTime(9, 0))), ]; } }