Class: Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo

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



202
203
204
205
# File 'lib/stripe/params/subscription_create_params.rb', line 202

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

Instance Attribute Details

#priceObject

The ID of the price object.



198
199
200
# File 'lib/stripe/params/subscription_create_params.rb', line 198

def price
  @price
end

#typeObject

Controls which subscription items the billing schedule applies to.



200
201
202
# File 'lib/stripe/params/subscription_create_params.rb', line 200

def type
  @type
end