LatticeStripe.Testing.Fixtures.MeterEvent (LatticeStripe v2.0.0)

Copy Markdown View Source

Canonical raw fixtures for Stripe billing meter event objects.

Summary

Functions

Basic MeterEvent fixture matching Stripe's wire format.

Functions

meter_event_json(overrides \\ %{})

@spec meter_event_json(map()) :: map()

Basic MeterEvent fixture matching Stripe's wire format.

The payload field intentionally includes both the customer mapping key (stripe_customer_id) and the value key (value). Tests for Inspect masking should assert that :payload is hidden in the string representation of %LatticeStripe.Billing.MeterEvent{}.