<?php

namespace App\Events;

use App\Models\Invoice;
use App\Modules\Billing\BillingResponse;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

/**
 * Fired after the integrator (Gib/Parasut/Logo) successfully issues a
 * legal invoice. Drives the customer email + activity logging.
 */
class LegalInvoiceIssued
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Invoice $invoice,
        public BillingResponse $response,
    ) {}
}
