Sha256: e514c066a61eedd1029139e6dc4fd4ed7283a0abebcfd8eb508d7f8f79f8deed

Contents?: true

Size: 391 Bytes

Versions: 28

Compression:

Stored size: 391 Bytes

Contents

module Workarea
  class Order
    class FraudDecision
      include ApplicationDocument

      embedded_in :order, class_name: 'Workarea::Order'

      field :decision, type: Symbol, default: :no_decision
      field :analyzer, type: String
      field :message, type: String
      field :response, type: String

      def declined?
        decision == :declined
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.27 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.26 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.25 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.23 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.22 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.21 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.20 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.19 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.18 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.17 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.16 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.15 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.14 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.13 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.12 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.11 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.10 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.9 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.8 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.7 app/models/workarea/order/fraud_decision.rb