Class: Stripe::Billing::MeterEventAdjustmentCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::MeterEventAdjustmentCreateParams
- Defined in:
- lib/stripe/params/billing/meter_event_adjustment_create_params.rb
Defined Under Namespace
Classes: Cancel
Instance Attribute Summary collapse
-
#cancel ⇒ Object
Specifies which event to cancel.
-
#event_name ⇒ Object
The name of the meter event.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#type ⇒ Object
Specifies whether to cancel a single event or a range of events for a time period.
Instance Method Summary collapse
-
#initialize(cancel: nil, event_name: nil, expand: nil, type: nil) ⇒ MeterEventAdjustmentCreateParams
constructor
A new instance of MeterEventAdjustmentCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(cancel: nil, event_name: nil, expand: nil, type: nil) ⇒ MeterEventAdjustmentCreateParams
Returns a new instance of MeterEventAdjustmentCreateParams.
24 25 26 27 28 29 |
# File 'lib/stripe/params/billing/meter_event_adjustment_create_params.rb', line 24 def initialize(cancel: nil, event_name: nil, expand: nil, type: nil) @cancel = cancel @event_name = event_name = @type = type end |
Instance Attribute Details
#cancel ⇒ Object
Specifies which event to cancel.
16 17 18 |
# File 'lib/stripe/params/billing/meter_event_adjustment_create_params.rb', line 16 def cancel @cancel end |
#event_name ⇒ Object
The name of the meter event. Corresponds with the ‘event_name` field on a meter.
18 19 20 |
# File 'lib/stripe/params/billing/meter_event_adjustment_create_params.rb', line 18 def event_name @event_name end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
20 21 22 |
# File 'lib/stripe/params/billing/meter_event_adjustment_create_params.rb', line 20 def end |
#type ⇒ Object
Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
22 23 24 |
# File 'lib/stripe/params/billing/meter_event_adjustment_create_params.rb', line 22 def type @type end |