Package com.maxmind.minfraud.response
Class ScoreResponse
- java.lang.Object
-
- com.maxmind.minfraud.AbstractModel
-
- com.maxmind.minfraud.response.ScoreResponse
-
- Direct Known Subclasses:
InsightsResponse
public class ScoreResponse extends AbstractModel
This class represents the minFraud Score response.
-
-
Constructor Summary
Constructors Constructor Description ScoreResponse(Disposition disposition, Double fundsRemaining, UUID id, ScoreIpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<Warning> warnings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Disposition
getDisposition()
Double
getFundsRemaining()
UUID
getId()
IpAddressInterface
getIpAddress()
Integer
getQueriesRemaining()
Double
getRiskScore()
List<Warning>
getWarnings()
-
Methods inherited from class com.maxmind.minfraud.AbstractModel
toJson, toString
-
-
-
-
Constructor Detail
-
ScoreResponse
public ScoreResponse(Disposition disposition, Double fundsRemaining, UUID id, ScoreIpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<Warning> warnings)
-
-
Method Detail
-
getDisposition
public final Disposition getDisposition()
- Returns:
- The disposition set by your custom rules.
-
getFundsRemaining
public final Double getFundsRemaining()
- Returns:
- The approximate US dollar value of the funds remaining on your MaxMind account.
-
getId
public final UUID getId()
- Returns:
- This is a UUID that identifies the minFraud request.
-
getIpAddress
public IpAddressInterface getIpAddress()
- Returns:
- The
IpAddress
model object.
-
getQueriesRemaining
public final Integer getQueriesRemaining()
- Returns:
- The approximate number of queries remaining for this service before your account runs out of funds.
-
getRiskScore
public final Double getRiskScore()
- Returns:
- This returns the risk score, from 0.01 to 99. A higher score indicates a higher risk of fraud. For example, a score of 20 indicates a 20% chance that a transaction is fraudulent. We never return a risk score of 0, since all transactions have the possibility of being fraudulent. Likewise we never return a risk score of 100.
-
-