Class: Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo

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



1963
1964
1965
1966
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1963

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

Instance Attribute Details

#priceObject

The ID of the price object.



1959
1960
1961
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1959

def price
  @price
end

#typeObject

Controls which subscription items the billing schedule applies to.



1961
1962
1963
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1961

def type
  @type
end