MCPcopy Index your code
hub / github.com/simstudioai/sim / createInvoiceEvent

Function createInvoiceEvent

apps/sim/lib/billing/webhooks/invoices.test.ts:147–152  ·  view source on GitHub ↗
(
  type: 'invoice.payment_failed' | 'invoice.payment_succeeded',
  invoice: Partial<Stripe.Invoice>
)

Source from the content-addressed store, hash-verified

145}
146
147function createInvoiceEvent(
148 type: 'invoice.payment_failed' | 'invoice.payment_succeeded',
149 invoice: Partial<Stripe.Invoice>
150): Stripe.Event {
151 return createMockStripeEvent(type, invoice)
152}
153
154describe('invoice billing recovery', () => {
155 beforeEach(() => {

Callers 1

invoices.test.tsFile · 0.85

Calls 1

createMockStripeEventFunction · 0.90

Tested by

no test coverage detected