Sha256: 42e54fbbe4673cc3a28fa9fb4cf1bc46fdd7be403a840804328b4d9235b10c13

Contents?: true

Size: 415 Bytes

Versions: 11

Compression:

Stored size: 415 Bytes

Contents

module DiscoApp
  class AppUninstalledJob < DiscoApp::ShopJob

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

    def perform(domain, shop_data)

      # Mark the shop's charge status as "cancelled" unless charges have been waived.
      unless @shop.charge_waived?
        @shop.charge_cancelled!
      end

    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
disco_app-0.4.1 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.4.2 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.4.3 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.4.4 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.0 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.1 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.2 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.3 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.4 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.5 app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.5.6 app/jobs/disco_app/app_uninstalled_job.rb