Method: SolidusSubscriptions::Subscription#next_actionable_date

Defined in:
app/models/solidus_subscriptions/subscription.rb

#next_actionable_dateDate

Get the date after the current actionable_date where this subscription will be actionable again

Returns:

  • (Date)

    The current actionable_date plus 1 interval. The next date after the current actionable_date this subscription will be eligible to be processed.



202
203
204
205
206
207
208
# File 'app/models/solidus_subscriptions/subscription.rb', line 202

def next_actionable_date
  return nil unless active?

  new_date = actionable_date || Time.zone.today

  new_date + interval
end