Class: Stripe::Quote::UpdateParams::LineItem::PriceData::Recurring
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Quote::UpdateParams::LineItem::PriceData::Recurring
- Defined in:
- lib/stripe/resources/quote.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
Specifies billing frequency.
-
#interval_count ⇒ Object
The number of intervals between subscription billings.
Instance Method Summary collapse
-
#initialize(interval: nil, interval_count: nil) ⇒ Recurring
constructor
A new instance of Recurring.
Methods inherited from RequestParams
Constructor Details
#initialize(interval: nil, interval_count: nil) ⇒ Recurring
Returns a new instance of Recurring.
615 616 617 618 |
# File 'lib/stripe/resources/quote.rb', line 615 def initialize(interval: nil, interval_count: nil) @interval = interval @interval_count = interval_count end |
Instance Attribute Details
#interval ⇒ Object
Specifies billing frequency. Either ‘day`, `week`, `month` or `year`.
611 612 613 |
# File 'lib/stripe/resources/quote.rb', line 611 def interval @interval end |
#interval_count ⇒ Object
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).
613 614 615 |
# File 'lib/stripe/resources/quote.rb', line 613 def interval_count @interval_count end |