Overview

Namespaces

  • GeoIp2
    • Compat
    • Database
    • Exception
    • Model
    • Record
    • Test
      • Database
      • Model
      • WebService
    • WebService
  • MaxMind
    • MinFraud
      • Model

Classes

  • Address
  • BillingAddress
  • CreditCard
  • Device
  • Email
  • Factors
  • GeoIp2Country
  • GeoIp2Location
  • Insights
  • IpAddress
  • Issuer
  • Score
  • ScoreIpAddress
  • ShippingAddress
  • Subscores
  • Warning
  • Overview
  • Namespace
  • Class

Class Warning

Class Warning

MaxMind\MinFraud\Model\AbstractModel implements JsonSerializable
Extended by MaxMind\MinFraud\Model\Warning
Namespace: MaxMind\MinFraud\Model
Package: MaxMind\MinFraud\Model
Located at MinFraud/Model/Warning.php
Methods summary
public
# __construct( array $response, array $locales = ['en'] )

Parameters

$response

The array corresponding to the object in the minFraud Insights response.

$locales

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

Overrides

MaxMind\MinFraud\Model\AbstractModel::__construct()
Methods inherited from MaxMind\MinFraud\Model\AbstractModel
__get(), jsonSerialize(), safeArrayLookup()
Magic properties summary
public string $code

This value is a machine-readable code identifying the warning. Although more codes may be added in the future, the current codes are: * BILLING_CITY_NOT_FOUND - the billing city could not be found in our database. * BILLING_COUNTRY_NOT_FOUND - the billing country could not be found in our database. * BILLING_POSTAL_NOT_FOUND - the billing postal could not be found in our database. * INPUT_INVALID - the value associated with the key does not meet the required constraints, e.g., "United States" in a field that requires a two-letter country code. * INPUT_UNKNOWN - an unknown key was encountered in the request body. * IP_ADDRESS_NOT_FOUND - the IP address could not be geolocated. * SHIPPING_CITY_NOT_FOUND - the shipping city could not be found in our database. * SHIPPING_COUNTRY_NOT_FOUND - the shipping country could not be found in our database. * SHIPPING_POSTAL_NOT_FOUND - the shipping postal could not be found in our database.

public string $warning

This property provides a human-readable explanation of the warning. The description may change at any time and should not be matched against.

public array|null $input

A JSON Pointer to the input field that the warning is associated with. For instance, if the warning was about the billing city, this would be /billing/city. If it was for the price in the second shopping cart item, it would be /shopping_cart/1/price.

minFraud Score and Insights PHP API v0.5.0 API documentation generated by ApiGen