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.6 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.5 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.4 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.3 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.2 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.1 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.0 app/models/workarea/order/fraud_decision.rb
workarea-core-3.5.0.beta.1 app/models/workarea/order/fraud_decision.rb