Class: Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionUpdateConfirm::Item

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(id: nil, price: nil, quantity: nil) ⇒ Item

Returns a new instance of Item.



199
200
201
202
203
# File 'lib/stripe/resources/billing_portal/session.rb', line 199

def initialize(id: nil, price: nil, quantity: nil)
  @id = id
  @price = price
  @quantity = quantity
end

Instance Attribute Details

#idObject

The ID of the [subscription item](stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated.



193
194
195
# File 'lib/stripe/resources/billing_portal/session.rb', line 193

def id
  @id
end

#priceObject

The price the customer should subscribe to through this flow. The price must also be included in the configuration’s [‘features.subscription_update.products`](stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).



195
196
197
# File 'lib/stripe/resources/billing_portal/session.rb', line 195

def price
  @price
end

#quantityObject

[Quantity](stripe.com/docs/subscriptions/quantities) for this item that the customer should subscribe to through this flow.



197
198
199
# File 'lib/stripe/resources/billing_portal/session.rb', line 197

def quantity
  @quantity
end