LatticeStripe.Billing.MeterEventAdjustment.Cancel (LatticeStripe v1.7.5)

Copy Markdown View Source

The cancel sub-object of a LatticeStripe.Billing.MeterEventAdjustment.

Single field: identifier (a string matching a previously-reported MeterEvent.identifier). This struct exists to anchor the exact Stripe wire shape — the field is cancel.identifier, never top-level identifier, never cancel.id, never cancel.event_id. Developers passing the wrong shape hit a Stripe 400 at runtime; round-trip tests against this struct prevent regressions.

Summary

Types

t()

@type t() :: %LatticeStripe.Billing.MeterEventAdjustment.Cancel{
  identifier: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map() | nil) :: t() | nil