Sha256: 1dd54037e43aa6690fca9dad97de31d93b71cc04f7a2463d4cdbd355361946c6
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
module Workarea module Forter class UpdateStatus include Sidekiq::Worker def perform(id, status_hash) decision = Workarea::Order.find(id).fraud_decision rescue nil if decision.blank? Rails.logger.warn "No decision record found for #{id} during update status" return false end Workarea::Forter.gateway.update_order_status(id, status_hash) decision.external_order_status = status_hash[:updatedStatus] decision.save! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-forter-1.3.2 | app/workers/forter/update_status.rb |
workarea-forter-1.3.1 | app/workers/forter/update_status.rb |
workarea-forter-1.3.0 | app/workers/forter/update_status.rb |