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