Record Class ScoreResponse
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.ScoreResponse
- Record Components:
disposition- The disposition set by your custom rules.fundsRemaining- The approximate US dollar value of the funds remaining on your MaxMind account.id- This is a UUID that identifies the minFraud request.ipAddress- TheIpAddressmodel object.queriesRemaining- The approximate number of queries remaining for this service before your account runs out of funds.riskScore- 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.warnings- An unmodifiable list containing warning objects that detail issues with the request such as invalid or unknown inputs. It is highly recommended that you check this list for issues when integrating the web service.
- All Implemented Interfaces:
JsonSerializable
public record ScoreResponse(Disposition disposition, Double fundsRemaining, UUID id, ScoreIpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<Warning> warnings)
extends Record
implements JsonSerializable
This class represents the minFraud Score response.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofScoreResponsewith no data.ScoreResponse(Disposition disposition, Double fundsRemaining, UUID id, ScoreIpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<Warning> warnings) Compact canonical constructor that sets defaults for null values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedispositionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefundsRemainingrecord component.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UsefundsRemaining()instead.getId()Deprecated, for removal: This API element is subject to removal in a future version.Useid()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsequeriesRemaining()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseriskScore()instead.Deprecated, for removal: This API element is subject to removal in a future version.Usewarnings()instead.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theipAddressrecord component.Returns the value of thequeriesRemainingrecord component.Returns the value of theriskScorerecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
ScoreResponse
public ScoreResponse(Disposition disposition, Double fundsRemaining, UUID id, ScoreIpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<Warning> warnings) Compact canonical constructor that sets defaults for null values. -
ScoreResponse
public ScoreResponse()Constructs an instance ofScoreResponsewith no data.
-
-
Method Details
-
getDisposition
Deprecated, for removal: This API element is subject to removal in a future version.Usedisposition()instead. This method will be removed in 5.0.0.- Returns:
- The disposition set by your custom rules.
-
getFundsRemaining
Deprecated, for removal: This API element is subject to removal in a future version.UsefundsRemaining()instead. This method will be removed in 5.0.0.- Returns:
- The approximate US dollar value of the funds remaining on your MaxMind account.
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.Useid()instead. This method will be removed in 5.0.0.- Returns:
- This is a UUID that identifies the minFraud request.
-
getIpAddress
Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead. This method will be removed in 5.0.0.- Returns:
- The
IpAddressmodel object.
-
getQueriesRemaining
Deprecated, for removal: This API element is subject to removal in a future version.UsequeriesRemaining()instead. This method will be removed in 5.0.0.- Returns:
- The approximate number of queries remaining for this service before your account runs out of funds.
-
getRiskScore
Deprecated, for removal: This API element is subject to removal in a future version.UseriskScore()instead. This method will be removed in 5.0.0.- 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.
-
getWarnings
Deprecated, for removal: This API element is subject to removal in a future version.Usewarnings()instead. This method will be removed in 5.0.0.- Returns:
- An unmodifiable list containing warning objects that detail issues with the request such as invalid or unknown inputs. It is highly recommended that you check this list for issues when integrating the web service.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
disposition
Returns the value of thedispositionrecord component.- Returns:
- the value of the
dispositionrecord component
-
fundsRemaining
Returns the value of thefundsRemainingrecord component.- Returns:
- the value of the
fundsRemainingrecord component
-
id
-
ipAddress
-
queriesRemaining
Returns the value of thequeriesRemainingrecord component.- Returns:
- the value of the
queriesRemainingrecord component
-
riskScore
-
warnings
-
disposition()instead.