Sha256: abc9d414b3126d42e3bad2c03a76a3e24d4ba120a8c0c8acc7197cd58d0b02b7

Contents?: true

Size: 575 Bytes

Versions: 17

Compression:

Stored size: 575 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 any recurring application charges as cancelled.
  # - Remove any stored sessions for the shop.
  #
  def perform(_shop, shop_data)
    DiscoApp::ChargesService.cancel_recurring_charges(@shop)
    DiscoApp::SendSubscriptionJob.perform_later(@shop)
    @shop.sessions.delete_all
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.3 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.4 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.5 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.6 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.7 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.8 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.14.1 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.14.2 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.15.0 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.16.0 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.14.4 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.14.3 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.16.1 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.15.2 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.14.0 app/jobs/disco_app/concerns/app_uninstalled_job.rb
disco_app-0.13.6.pre.puma.pre.3 app/jobs/disco_app/concerns/app_uninstalled_job.rb