LatticeStripe.Billing.Meter.ValueSettings (LatticeStripe v1.7.10)

Copy Markdown View Source

Value-extraction settings for sum/last meters. event_payload_key names the field inside MeterEvent.payload from which Stripe reads the numeric value. Defaults server-side to "value" when omitted in Meter.create/3.

Summary

Types

t()

@type t() :: %LatticeStripe.Billing.Meter.ValueSettings{
  event_payload_key: String.t() | nil
}

Functions

from_map(map)

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