Neustrukturierung Customer / Lead / Booking Phase 2
This commit is contained in:
parent
313f0dbf4e
commit
6df9c401af
69 changed files with 3809 additions and 374 deletions
27
app/Events/Offer/OfferAccepted.php
Normal file
27
app/Events/Offer/OfferAccepted.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events\Offer;
|
||||
|
||||
use App\Models\Offer;
|
||||
use App\Models\OfferVersion;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
|
||||
/**
|
||||
* Wird gefeuert, nachdem eine OfferVersion als `accepted` markiert wurde
|
||||
* (durch Admin oder Kunden-Token-Link). Listener schreiben Audit-Logs,
|
||||
* benachrichtigen das Team und aktivieren den Button „In Buchung übernehmen".
|
||||
*/
|
||||
class OfferAccepted
|
||||
{
|
||||
use Dispatchable;
|
||||
|
||||
public function __construct(
|
||||
public readonly Offer $offer,
|
||||
public readonly OfferVersion $version,
|
||||
/** customer_link | admin | email */
|
||||
public readonly string $via,
|
||||
public readonly ?string $ip = null,
|
||||
public readonly ?string $userAgent = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue