View Source Stripe.Billing.MeterEventAdjustment (stripity_stripe v3.3.1)
A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
Summary
Functions
Creates a billing meter event adjustment.
Types
@type cancel() :: %{optional(:identifier) => binary()}
Specifies which event to cancel.
@type t() :: %Stripe.Billing.MeterEventAdjustment{ cancel: term() | nil, event_name: binary(), livemode: boolean(), object: binary(), status: binary(), type: binary() }
The billing.meter_event_adjustment type.
cancelSpecifies which event to cancel.event_nameThe name of the meter event. Corresponds with theevent_namefield on a meter.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.statusThe meter event adjustment's status.typeSpecifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
Functions
@spec create( params :: %{ optional(:cancel) => cancel(), optional(:event_name) => binary(), optional(:expand) => [binary()], optional(:type) => :cancel }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates a billing meter event adjustment.
Details
- Method:
post - Path:
/v1/billing/meter_event_adjustments