Class: Stripe::V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition

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

Defined Under Namespace

Classes: Dimension

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil, dimension: nil) ⇒ MeterSegmentCondition

Returns a new instance of MeterSegmentCondition.



192
193
194
195
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 192

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

Instance Attribute Details

#dimensionObject

Dimension-based meter segment condition.



190
191
192
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 190

def dimension
  @dimension
end

#typeObject

The type of the meter segment condition. We currently support ‘dimension`.



188
189
190
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 188

def type
  @type
end