<?php

namespace App\Events;

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

/**
 * Fired when an invoice transitions to refunded. Listened to by
 * DispatchLegalInvoiceListener (PRC-75) to forward the refund order
 * to the appropriate billing integrator.
 */
class InvoiceRefunded
{
    use Dispatchable, SerializesModels;

    public function __construct(public Invoice $invoice) {}
}
