Class: Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing_portal/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(prices: nil, product: nil) ⇒ Product

Returns a new instance of Product.



258
259
260
261
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 258

def initialize(prices: nil, product: nil)
  @prices = prices
  @product = product
end

Instance Attribute Details

#pricesObject

The list of price IDs for the product that a subscription can be updated to.



253
254
255
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 253

def prices
  @prices
end

#productObject

The product id.



256
257
258
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 256

def product
  @product
end