Class: Stripe::Billing::MeterEventAdjustment::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/meter_event_adjustment.rb

Defined Under Namespace

Classes: Cancel

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(cancel: nil, event_name: nil, expand: nil, type: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



38
39
40
41
42
43
# File 'lib/stripe/resources/billing/meter_event_adjustment.rb', line 38

def initialize(cancel: nil, event_name: nil, expand: nil, type: nil)
  @cancel = cancel
  @event_name = event_name
  @expand = expand
  @type = type
end

Instance Attribute Details

#cancelObject

Specifies which event to cancel.



30
31
32
# File 'lib/stripe/resources/billing/meter_event_adjustment.rb', line 30

def cancel
  @cancel
end

#event_nameObject

The name of the meter event. Corresponds with the ‘event_name` field on a meter.



32
33
34
# File 'lib/stripe/resources/billing/meter_event_adjustment.rb', line 32

def event_name
  @event_name
end

#expandObject

Specifies which fields in the response should be expanded.



34
35
36
# File 'lib/stripe/resources/billing/meter_event_adjustment.rb', line 34

def expand
  @expand
end

#typeObject

Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.



36
37
38
# File 'lib/stripe/resources/billing/meter_event_adjustment.rb', line 36

def type
  @type
end