27 lines
727 B
PHP
27 lines
727 B
PHP
<?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,
|
|
) {
|
|
}
|
|
}
|