Class: Stripe::Billing::MeterEventService

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

Defined Under Namespace

Classes: CreateParams

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 billing meter event.



29
30
31
32
33
34
35
36
37
# File 'lib/stripe/services/billing/meter_event_service.rb', line 29

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