Sha256: 395772b1e816b017f545109e012c7c277d785d9c2a94bb40e23e7300d67db946

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
disco_app-0.3.0 lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb
disco_app-0.4.0 lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb