using Event = Stripe.Event; namespace Bit.Billing.Services.Implementations; public class InvoiceFinalizedHandler : IInvoiceFinalizedHandler { private readonly IProviderEventService _providerEventService; public InvoiceFinalizedHandler(IProviderEventService providerEventService) { _providerEventService = providerEventService; } /// /// Handles the event type from Stripe. /// /// public async Task HandleAsync(Event parsedEvent) { await _providerEventService.TryRecordInvoiceLineItems(parsedEvent); } }