InvoiceCreatedEvent constructor

const InvoiceCreatedEvent({
  1. required Invoice object,
})

Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see [Using Webhooks with Subscriptions](/docs/subscriptions/webhooks).

Implementation

const InvoiceCreatedEvent({required this.object});