app/actions/notification_action.rb
# Schedule jobs to update the organization's CRM and send the customer a receipt.
class NotificationAction
attr_accessor :charge
def initialize(charge)
@charge = charge
end
def call
CrmNotificationWorker.perform_async(charge.id)
ChargeNotificationMailer.send_receipt(charge.id).deliver_later
end
end