Class: Stripe::PlanUpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PlanUpdateParams
- Defined in:
- lib/stripe/params/plan_update_params.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Whether the plan is currently available for new subscriptions.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#nickname ⇒ Object
A brief description of the plan, hidden from customers.
-
#product ⇒ Object
The product the plan belongs to.
-
#trial_period_days ⇒ Object
Default number of trial days when subscribing a customer to this plan using [‘trial_from_plan=true`](stripe.com/docs/api#create_subscription-trial_from_plan).
Instance Method Summary collapse
-
#initialize(active: nil, expand: nil, metadata: nil, nickname: nil, product: nil, trial_period_days: nil) ⇒ PlanUpdateParams
constructor
A new instance of PlanUpdateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(active: nil, expand: nil, metadata: nil, nickname: nil, product: nil, trial_period_days: nil) ⇒ PlanUpdateParams
Returns a new instance of PlanUpdateParams.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/stripe/params/plan_update_params.rb', line 19 def initialize( active: nil, expand: nil, metadata: nil, nickname: nil, product: nil, trial_period_days: nil ) @active = active @expand = @metadata = @nickname = nickname @product = product @trial_period_days = trial_period_days end |
Instance Attribute Details
#active ⇒ Object
Whether the plan is currently available for new subscriptions.
7 8 9 |
# File 'lib/stripe/params/plan_update_params.rb', line 7 def active @active end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
9 10 11 |
# File 'lib/stripe/params/plan_update_params.rb', line 9 def @expand end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
11 12 13 |
# File 'lib/stripe/params/plan_update_params.rb', line 11 def @metadata end |
#nickname ⇒ Object
A brief description of the plan, hidden from customers.
13 14 15 |
# File 'lib/stripe/params/plan_update_params.rb', line 13 def nickname @nickname end |
#product ⇒ Object
The product the plan belongs to. This cannot be changed once it has been used in a subscription or subscription schedule.
15 16 17 |
# File 'lib/stripe/params/plan_update_params.rb', line 15 def product @product end |
#trial_period_days ⇒ Object
Default number of trial days when subscribing a customer to this plan using [‘trial_from_plan=true`](stripe.com/docs/api#create_subscription-trial_from_plan).
17 18 19 |
# File 'lib/stripe/params/plan_update_params.rb', line 17 def trial_period_days @trial_period_days end |