Class: Stripe::BillingPortal::Session::Flow::SubscriptionUpdateConfirm::Item

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

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#idObject (readonly)

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



143
144
145
# File 'lib/stripe/resources/billing_portal/session.rb', line 143

def id
  @id
end

#priceObject (readonly)

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).



145
146
147
# File 'lib/stripe/resources/billing_portal/session.rb', line 145

def price
  @price
end

#quantityObject (readonly)

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



147
148
149
# File 'lib/stripe/resources/billing_portal/session.rb', line 147

def quantity
  @quantity
end

Class Method Details

.field_remappingsObject



153
154
155
# File 'lib/stripe/resources/billing_portal/session.rb', line 153

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



149
150
151
# File 'lib/stripe/resources/billing_portal/session.rb', line 149

def self.inner_class_types
  @inner_class_types = {}
end