Class: Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionUpdateConfirm::Item
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionUpdateConfirm::Item
- Defined in:
- lib/stripe/resources/billing_portal/session.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
The ID of the [subscription item](stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated.
-
#price ⇒ Object
The price the customer should subscribe to through this flow.
-
#quantity ⇒ Object
[Quantity](stripe.com/docs/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
Instance Method Summary collapse
-
#initialize(id: nil, price: nil, quantity: nil) ⇒ Item
constructor
A new instance of Item.
Methods inherited from RequestParams
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
#id ⇒ Object
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 |
#price ⇒ Object
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 |
#quantity ⇒ Object
[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 |