Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • Test
      • Model
      • WebService
    • WebService
  • MaxMind
    • MinFraud
      • Model
  • None
  • PHP

Classes

  • Address
  • BillingAddress
  • CreditCard
  • GeoIp2Country
  • GeoIp2Location
  • Insights
  • IpAddress
  • Issuer
  • Score
  • ShippingAddress
  • Warning
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace MaxMind\MinFraud\Model;
 4: 
 5: /**
 6:  * Class Insights
 7:  * @package MaxMind\MinFraud\Model
 8:  *
 9:  * @property \MaxMind\MinFraud\Model\CreditCard $creditCard An object containing
10:  * minFraud data about the credit card used in the transaction.
11:  * @property \MaxMind\MinFraud\Model\IpAddress $ipAddress An object containing
12:  * GeoIP2 and minFraud Insights information about the geolocated IP address.
13:  * @property \MaxMind\MinFraud\Model\BillingAddress $billingAddress An object
14:  * containing minFraud data related to the billing address used in the
15:  * transaction.
16:  * @property \MaxMind\MinFraud\Model\ShippingAddress $shippingAddress An object
17:  * containing minFraud data related to the shipping address used in the
18:  * transaction.
19:  */
20: class Insights extends Score
21: {
22:     /**
23:      * @internal
24:      */
25:     protected $ipAddress;
26: 
27:     /**
28:      * @internal
29:      */
30:     protected $creditCard;
31: 
32:     /**
33:      * @internal
34:      */
35:     protected $shippingAddress;
36: 
37:     /**
38:      * @internal
39:      */
40:     protected $billingAddress;
41: 
42:     public function __construct($response, $locales = array('en'))
43:     {
44:         parent::__construct($response, $locales);
45:         $this->ipAddress
46:             = new IpAddress($this->safeArrayLookup($response['ip_address']), $locales);
47:         $this->creditCard
48:             = new CreditCard($this->safeArrayLookup($response['credit_card']));
49:         $this->shippingAddress
50:             = new ShippingAddress($this->safeArrayLookup($response['shipping_address']));
51:         $this->billingAddress
52:             = new BillingAddress($this->safeArrayLookup($response['billing_address']));
53:     }
54: }
55: 
minFraud Score and Insights PHP API v0.1.0 API documentation generated by ApiGen