Sha256: 77a8c3afa1d262eff3c00f0f3cc5eafdc596eaa46076e07a9622b6d290200e92

Contents?: true

Size: 467 Bytes

Versions: 9

Compression:

Stored size: 467 Bytes

Contents

module DiscoApp::Concerns::AppUninstalledJob
  extend ActiveSupport::Concern

  included do
    before_enqueue { @shop.awaiting_uninstall! }
    before_perform { @shop.uninstalling! }
    after_perform { @shop.uninstalled! }
  end

  # Perform application uninstallation.
  #
  # - Mark charge status as "cancelled" unless charges have been waived.
  #
  def perform(domain, shop_data)
    unless @shop.charge_waived?
      @shop.charge_cancelled!
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
disco_app-0.6.1 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.2 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.3 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.4 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.5 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.6 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.7 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.8 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.6.9 app/jobs/disco_app/concerns/app_uninstalled_job.rb