\MaxMind\MinFraud\ModelScore

Model of the Score response.

Summary

Methods
Properties
Constants
__construct()
jsonSerialize()
$fundsRemaining
$queriesRemaining
$rawResponse
$id
$riskScore
$disposition
$ipAddress
$warnings
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$fundsRemaining

$fundsRemaining : float

The approximate US dollar value of the funds remaining on your MaxMind account.

Type

normal

$queriesRemaining

$queriesRemaining : int

The approximate number of queries remaining for this service before your account runs out of funds.

Type

normal

$rawResponse

$rawResponse : int

The raw data that comes back from the post request to the maxmind server.

Type

normal

$id

$id : string

This is a UUID that identifies the minFraud request. Please use this ID in bug reports or support requests to MaxMind so that we can easily identify a particular request.

Type

normal

$riskScore

$riskScore : float

This property contains 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.

Type

normal

$disposition

$disposition : \MaxMind\MinFraud\Model\Disposition

An object containing the disposition set by custom rules.

Type

normal

$ipAddress

$ipAddress : \MaxMind\MinFraud\Model\ScoreIpAddress

An object containing the IP risk for the transaction.

Type

normal

$warnings

$warnings : array

This array contains \MaxMind\MinFraud\Model\Warning objects detailing issues with the request that was sent, such as invalid or unknown inputs. It is highly recommended that you check this array for issues when integrating the web service.

Type

normal

Methods

__construct()

__construct(mixed  $response, mixed  $locales = ['en']) : mixed

Parameters

mixed $response

the array corresponding to the object in the minFraud Insights response

mixed $locales

list of locale codes to use in name property from most preferred to least preferred

Returns

mixed

jsonSerialize()

jsonSerialize() : array

Returns

array —

data that can be serialized by json_encode