Module: DiscoApp::Concerns::AppUninstalledJob
- Extended by:
- ActiveSupport::Concern
- Included in:
- AppUninstalledJob
- Defined in:
- app/jobs/disco_app/concerns/app_uninstalled_job.rb
Instance Method Summary collapse
-
#perform(_shop, _shop_data) ⇒ Object
Perform application uninstallation.
Instance Method Details
#perform(_shop, _shop_data) ⇒ Object
Perform application uninstallation.
-
Mark any recurring application charges as cancelled.
-
Remove any stored sessions for the shop.
16 17 18 19 20 |
# File 'app/jobs/disco_app/concerns/app_uninstalled_job.rb', line 16 def perform(_shop, _shop_data) DiscoApp::ChargesService.cancel_recurring_charges(@shop) DiscoApp::SendSubscriptionJob.perform_later(@shop) @shop.sessions.delete_all end |