Class: Stripe::BillingPortal::Configuration::Features::SubscriptionUpdate
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::BillingPortal::Configuration::Features::SubscriptionUpdate
- Defined in:
- lib/stripe/resources/billing_portal/configuration.rb
Defined Under Namespace
Classes: Product, ScheduleAtPeriodEnd
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#default_allowed_updates ⇒ Object
readonly
The types of subscription updates that are supported for items listed in the ‘products` attribute.
-
#enabled ⇒ Object
readonly
Whether the feature is enabled.
-
#products ⇒ Object
readonly
The list of up to 10 products that support subscription updates.
-
#proration_behavior ⇒ Object
readonly
Determines how to handle prorations resulting from subscription updates.
-
#schedule_at_period_end ⇒ Object
readonly
Attribute for field schedule_at_period_end.
Attributes inherited from StripeObject
Method Summary
Methods inherited from StripeObject
#==, #[], #[]=, 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
#default_allowed_updates ⇒ Object (readonly)
The types of subscription updates that are supported for items listed in the ‘products` attribute. When empty, subscriptions are not updateable.
78 79 80 |
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 78 def default_allowed_updates @default_allowed_updates end |
#enabled ⇒ Object (readonly)
Whether the feature is enabled.
80 81 82 |
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 80 def enabled @enabled end |
#products ⇒ Object (readonly)
The list of up to 10 products that support subscription updates.
82 83 84 |
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 82 def products @products end |
#proration_behavior ⇒ Object (readonly)
Determines how to handle prorations resulting from subscription updates. Valid values are ‘none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don’t set it during creation.
84 85 86 |
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 84 def proration_behavior @proration_behavior end |
#schedule_at_period_end ⇒ Object (readonly)
Attribute for field schedule_at_period_end
86 87 88 |
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 86 def schedule_at_period_end @schedule_at_period_end end |