Class: Stripe::SubscriptionScheduleUpdateParams::Phase::Item::PriceData::Recurring

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_schedule_update_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(interval: nil, interval_count: nil) ⇒ Recurring

Returns a new instance of Recurring.



511
512
513
514
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 511

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.



507
508
509
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 507

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).



509
510
511
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 509

def interval_count
  @interval_count
end