Class: Stripe::V2::Billing::IntentService::CreateParams::Action::Subscribe::PricingPlanSubscriptionDetails::ComponentConfiguration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(quantity: nil, lookup_key: nil, pricing_plan_component: nil) ⇒ ComponentConfiguration

Returns a new instance of ComponentConfiguration.



246
247
248
249
250
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 246

def initialize(quantity: nil, lookup_key: nil, pricing_plan_component: nil)
  @quantity = quantity
  @lookup_key = lookup_key
  @pricing_plan_component = pricing_plan_component
end

Instance Attribute Details

#lookup_keyObject

Lookup key for the pricing plan component.



242
243
244
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 242

def lookup_key
  @lookup_key
end

#pricing_plan_componentObject

ID of the pricing plan component.



244
245
246
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 244

def pricing_plan_component
  @pricing_plan_component
end

#quantityObject

Quantity of the component to be used.



240
241
242
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 240

def quantity
  @quantity
end