Class: Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

#initialize(price: nil, type: nil) ⇒ AppliesTo

Returns a new instance of AppliesTo.



175
176
177
178
# File 'lib/stripe/params/subscription_update_params.rb', line 175

def initialize(price: nil, type: nil)
  @price = price
  @type = type
end

Instance Attribute Details

#priceObject

The ID of the price object.



171
172
173
# File 'lib/stripe/params/subscription_update_params.rb', line 171

def price
  @price
end

#typeObject

Controls which subscription items the billing schedule applies to.



173
174
175
# File 'lib/stripe/params/subscription_update_params.rb', line 173

def type
  @type
end