Release 2.38.0 (#5563)

This commit is contained in:
Kevin Papst
2025-08-08 23:25:42 +02:00
committed by GitHub
parent f3890691ce
commit 04331420ae
88 changed files with 1319 additions and 697 deletions

View File

@@ -11,17 +11,14 @@ namespace App\Event;
use App\Entity\Invoice;
use App\Invoice\InvoiceModel;
use Symfony\Contracts\EventDispatcher\Event;
use App\Webhook\Attribute\AsWebhook;
final class InvoiceCreatedEvent extends Event
#[AsWebhook(name: 'invoice.created', description: 'Triggered after an invoice was created', payload: 'object.getInvoice()')]
final class InvoiceCreatedEvent extends AbstractInvoiceEvent
{
public function __construct(private readonly Invoice $invoice, private readonly InvoiceModel $model)
public function __construct(Invoice $invoice, private readonly InvoiceModel $model)
{
}
public function getInvoice(): Invoice
{
return $this->invoice;
parent::__construct($invoice);
}
public function getInvoiceModel(): InvoiceModel