summaryrefslogtreecommitdiff
path: root/app/services/solidus_subscriptions/success_dispatcher.rb
blob: 4ac5e945d0d21d6c620e63d4aacb589a0a8d0596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# Handles installments that are processed successfully.
module SolidusSubscriptions
  class SuccessDispatcher < Dispatcher
    def dispatch
      installments.each do |installment|
        installment.success!(order)
      end
    end
  end
end