Class: Workarea::SendRefundEmail

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::CallbacksWorker, Sidekiq::Worker
Defined in:
app/workers/workarea/send_refund_email.rb

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



11
12
13
14
15
# File 'app/workers/workarea/send_refund_email.rb', line 11

def perform(id)
  refund = Payment::Refund.find(id)
  return if refund.total.zero?
  Storefront::PaymentMailer.refunded(id.to_s).deliver_now
end