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, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of AppliesTo.



2053
2054
2055
2056
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 2053

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

Instance Attribute Details

#priceObject

The ID of the price object.



2049
2050
2051
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 2049

def price
  @price
end

#typeObject

Controls which subscription items the billing schedule applies to.



2051
2052
2053
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 2051

def type
  @type
end