Class: Privacy::ProcessorDetachWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/privacy/processor_detach_worker.rb

Overview

Sidekiq worker: async processor-side payment detach.

Instance Method Summary collapse

Instance Method Details

#perform(deletion_request_id) ⇒ Object



25
26
27
28
29
30
31
32
33
34
# File 'app/workers/privacy/processor_detach_worker.rb', line 25

def perform(deletion_request_id)
  req = Privacy::DeletionRequest.find_by(id: deletion_request_id)
  return unless req

  party = req.party
  return unless party

  detach_stripe!(party)
  detach_paypal!(party)
end