Class: Minfraud::Model::Disposition

Inherits:
Abstract
  • Object
show all
Defined in:
lib/minfraud/model/disposition.rb

Overview

Model with the disposition set by custom rules.

In order to receive a disposition, you must be using minFraud custom rules.

Instance Attribute Summary collapse

Instance Attribute Details

#actionString? (readonly)

The action to take on the transaction as defined by your custom rules. The current set of values are “accept”, “manual_review”, “reject”, and “test”. If you do not have custom rules set up, this will be nil.

Returns:

  • (String, nil)


17
18
19
# File 'lib/minfraud/model/disposition.rb', line 17

def action
  @action
end

#reasonString? (readonly)

The reason for the action. The current possible values are “custom_rule” and “default”. If you do not have custom rules set up, this will be nil.

Returns:

  • (String, nil)


24
25
26
# File 'lib/minfraud/model/disposition.rb', line 24

def reason
  @reason
end

#rule_labelString? (readonly)

The label of the custom rule that was triggered. If you do not have custom rules set up, the triggered custom rule does not have a label, or no custom rule was triggered, this will be nil.

Returns:

  • (String, nil)


30
31
32
# File 'lib/minfraud/model/disposition.rb', line 30

def rule_label
  @rule_label
end