Sha256: fec005cbf08e1abd05e8b082c79d17fd0c2e0c4c1654d20601657e33d63f3316

Contents?: true

Size: 252 Bytes

Versions: 7

Compression:

Stored size: 252 Bytes

Contents

# frozen_string_literal: true

module SolidusSubscriptions
  module Dispatcher
    class FailureDispatcher < Base
      def dispatch
        order.touch(:completed_at)
        order.cancel
        installment.failed!(order)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb
solidus_subscriptions-2.0.1 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb
solidus_subscriptions-2.0.0 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb
solidus_subscriptions-1.1.0 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb
solidus_subscriptions-1.0.1 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb
solidus_subscriptions-1.0.0 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb
solidus_subscriptions-1.0.0.rc1 lib/solidus_subscriptions/dispatcher/failure_dispatcher.rb