Class: Stripe::SubscriptionScheduleCreateParams::BillingSchedule::AppliesTo

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_schedule_create_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.



33
34
35
36
# File 'lib/stripe/params/subscription_schedule_create_params.rb', line 33

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

Instance Attribute Details

#priceObject

The ID of the price object.



29
30
31
# File 'lib/stripe/params/subscription_schedule_create_params.rb', line 29

def price
  @price
end

#typeObject

Controls which subscription items the billing schedule applies to.



31
32
33
# File 'lib/stripe/params/subscription_schedule_create_params.rb', line 31

def type
  @type
end