LatticeStripe.Billing.Meter.DefaultAggregation (LatticeStripe v1.7.0)

Copy Markdown View Source

Aggregation formula for a LatticeStripe.Billing.Meter.

One of three Stripe-documented formulas:

  • "sum" — sum of value_settings.event_payload_key across events
  • "count" — number of events (value_settings ignored)
  • "last" — most recent value_settings.event_payload_key in window

Summary

Types

formula()

@type formula() :: String.t()

t()

@type t() :: %LatticeStripe.Billing.Meter.DefaultAggregation{formula: formula() | nil}

Functions

from_map(map)

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