Class: Stripe::V2::Billing::MeterEventService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/v2/billing/meter_event_service.rb

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#create(params = {}, opts = {}) ⇒ Object

Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead.



9
10
11
12
13
14
15
16
17
# File 'lib/stripe/services/v2/billing/meter_event_service.rb', line 9

def create(params = {}, opts = {})
  request(
    method: :post,
    path: "/v2/billing/meter_events",
    params: params,
    opts: opts,
    base_address: :api
  )
end