Class: SolidusSubscriptions::Dispatcher::SuccessDispatcher

Inherits:
Base
  • Object
show all
Defined in:
lib/solidus_subscriptions/dispatcher/success_dispatcher.rb

Instance Attribute Summary

Attributes inherited from Base

#installment, #order

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SolidusSubscriptions::Dispatcher::Base

Instance Method Details

#dispatchObject



6
7
8
9
10
11
12
13
14
# File 'lib/solidus_subscriptions/dispatcher/success_dispatcher.rb', line 6

def dispatch
  installment.success!(order)

  ::SolidusSupport::LegacyEventCompat::Bus.publish(
    :'solidus_subscriptions.installment_succeeded',
    installment: installment,
    order: order,
  )
end