Sha256: 08432eed5be5c9e380ed4fcfabb54fdad9ced2f6b77682cca39fde4b9bfb0b62
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
class ErpContactJob < ApplicationJob queue_as :default def perform order:, contact:, event_name:, method_name: erp_event = ErpEvent.new erp_event.internal_id = order.id erp_event.name = event_name erp_event.method = method_name if contact.include? "error" erp_event.status = 'error' erp_event.message = contact["error"]["description"] else erp_event.status = 'success' end erp_event.body = order.to_json erp_event.save! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_bling-1.0.1 | app/jobs/erp_contact_job.rb |
solidus_bling-1.0.0 | app/jobs/erp_contact_job.rb |