Class: Stripe::SubscriptionScheduleUpdateParams::BillingSchedule::AppliesTo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of AppliesTo.



13
14
15
16
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 13

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

Instance Attribute Details

#priceObject

The ID of the price object.



9
10
11
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 9

def price
  @price
end

#typeObject

Controls which subscription items the billing schedule applies to.



11
12
13
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 11

def type
  @type
end