Class: Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrantPerTenant::GrantCondition

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/service_action_service.rb

Defined Under Namespace

Classes: MeterEventFirstPerPeriod

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil, meter_event_first_per_period: nil) ⇒ GrantCondition

Returns a new instance of GrantCondition.



186
187
188
189
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 186

def initialize(type: nil, meter_event_first_per_period: nil)
  @type = type
  @meter_event_first_per_period = meter_event_first_per_period
end

Instance Attribute Details

#meter_event_first_per_periodObject

The grant condition for the meter event first per period.



184
185
186
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 184

def meter_event_first_per_period
  @meter_event_first_per_period
end

#typeObject

The type of the grant condition. We currently support ‘meter_event_first_per_period`.



182
183
184
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 182

def type
  @type
end