Skip to main content

BillaBear Invoice Events

Here is the information relating to events relating to Invoices

Invoice Created

This is triggered when an invoice is created.

NameConstant For Name
billabear.invoice.createdBillaBear\Event\Invoice\InvoiceCreated::NAME

Event Class

namespace BillaBear\Event\Invoice;

use BillaBear\Entity\Invoice;
use Symfony\Contracts\EventDispatcher\Event;

class InvoiceCreated extends Event
{
public const string NAME = 'billabear.invoice.created';

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

Invoice Paid

This is triggered when an invoice is paid.

NameConstant For Name
billabear.invoice.paidBillaBear\Event\Invoice\InvoicePaid::NAME

Event Class

namespace BillaBear\Event\Invoice;

use BillaBear\Entity\Invoice;
use Symfony\Contracts\EventDispatcher\Event;

class InvoicePaid extends Event
{
public const string NAME = 'billabear.invoice.paid';

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