Sha256: f3af2d295ebec200f65d459a8d4a4b5a4105aa11aa0f3afe56a3d41e6169839f
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 Bytes
Contents
module Workarea decorate Order, with: :forter do decorated do field :forter_tracking_code, type: String end def flagged_for_fraud? decision = Workarea::Forter::Decision.find(id) rescue nil return false unless decision.present? && decision.response.present? decision.response.action == 'decline' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-forter-1.2.4 | app/models/workarea/order.decorator |
workarea-forter-1.2.3 | app/models/workarea/order.decorator |
workarea-forter-1.2.2 | app/models/workarea/order.decorator |