Class: Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::PriceData::Recurring

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval: nil, interval_count: nil) ⇒ Recurring

Returns a new instance of Recurring.



2513
2514
2515
2516
# File 'lib/stripe/services/invoice_service.rb', line 2513

def initialize(interval: nil, interval_count: nil)
  @interval = interval
  @interval_count = interval_count
end

Instance Attribute Details

#intervalObject

Specifies billing frequency. Either ‘day`, `week`, `month` or `year`.



2509
2510
2511
# File 'lib/stripe/services/invoice_service.rb', line 2509

def interval
  @interval
end

#interval_countObject

The number of intervals between subscription billings. For example, ‘interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).



2511
2512
2513
# File 'lib/stripe/services/invoice_service.rb', line 2511

def interval_count
  @interval_count
end