summaryrefslogtreecommitdiff
path: root/app/services/solidus_subscriptions/out_of_stock_dispatcher.rb
blob: 05484f4b23417fdc62a8cd5c35c67e1967bc04cc (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# Handles installments that cannot be processed for lack of stock.
module SolidusSubscriptions
  class OutOfStockDispatcher < Dispatcher
    def dispatch
      installments.each(&:out_of_stock)
    end
  end
end