<?php

namespace Modules\Payment\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Modules\Payment\Models\Payment;

/**
 * Dispatched once a Payment is confirmed successful — gateways stay
 * ignorant of Booking, so booking-status changes react to this event
 * instead (domain.md §6, see MarkBookingPaid).
 */
class PaymentCompleted
{
    use Dispatchable;

    public function __construct(public Payment $payment) {}
}
