Class RiskScoreReason

java.lang.Object
com.maxmind.minfraud.AbstractModel
com.maxmind.minfraud.response.RiskScoreReason

public final class RiskScoreReason extends AbstractModel
This class represents a risk score multiplier and reasons for that multiplier.
  • Constructor Details

    • RiskScoreReason

      public RiskScoreReason(Double multiplier, List<Reason> reasons)
      Constructor for RiskScoreReason.
      Parameters:
      multiplier - The multiplier.
      reasons - The reasons.
  • Method Details

    • getMultiplier

      public Double getMultiplier()
      Returns:
      The factor by which the risk score is increased (if the value is greater than 1) or decreased (if the value is less than 1) for given risk reason(s). Multipliers greater than 1.5 and less than 0.66 are considered significant and lead to risk reason(s) being present.
    • getReasons

      public List<Reason> getReasons()
      Returns:
      An unmodifiable list containing objects that describe one of the reasons for the multiplier. This will be an empty list if there are no reasons.