1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172:
<?php
namespace MaxMind\MinFraud\Model;
/**
* Class Subscores
* @package MaxMind\MinFraud\Subscores
*
* @property float|null avsResult The risk associated with the AVS result. If
* present, this is a value in the range 0.01 to 99.
* @property float|null billingAddress The risk associated with the billing
* address. If present, this is a value in the range 0.01 to 99.
* @property float|null billingAddressDistanceToIpLocation The risk
* associated with the distance between the billing address and the
* location for the given IP address. If present, this is a value in the
* range 0.01 to 99.
* @property float|null browser The risk associated with the browser
* attributes such as the User-Agent and Accept-Language. If present, this is
* a value in the range 0.01 to 99.
* @property float|null chargeback Individualized risk of chargeback for the
* given IP address given for your account and any shop ID passed. This is
* only available to users sending chargeback data to MaxMind. If present,
* this is a value in the range 0.01 to 99.
* @property float|null country The risk associated with the country the
* transaction originated from. If present, this is a value in the range 0.01
* to 99.
* @property float|null countryMismatch The risk associated with the
* combination of IP country, card issuer country, billing country, and
* shipping country. If present, this is a value in the range 0.01 to 99.
* @property float|null cvvResult The risk associated with the CVV result. If
* present, this is a value in the range 0.01 to 99.
* @property float|null emailAddress The risk associated with the particular
* email address. If present, this is a value in the range 0.01 to 99.
* @property float|null emailDomain The general risk associated with the
* email domain. If present, this is a value in the range 0.01 to 99.
* @property float|null emailTenure The risk associated with the issuer ID
* number on the email domain. If present, this is a value in the range 0.01
* to 99.
* @property float|null ipTenure The risk associated with the issuer ID
* number on the IP address. If present, this is a value in the range 0.01 to
* 99.
* @property float|null issuerIdNumber The risk associated with the
* particular issuer ID number (IIN) given the billing location and the
* history of usage of the IIN on your account and shop ID. If present, this
* is a value in the range 0.01 to 99.
* @property float|null orderAmount The risk associated with the particular
* order amount for your account and shop ID. If present, this is a value in
* the range 0.01 to 99.
* @property float|null phoneNumber The risk associated with the particular
* phone number. If present, this is a value in the range 0.01 to 99.
* @property float|null shippingAddressDistanceToIpLocation The risk
* associated with the distance between the shipping address and the IP
* location for the given IP address. If present, this is a value in the
* range 0.01 to 99.
* @property float|null timeOfDay The risk associated with the local time of
* day of the transaction in the IP address location. If present, this is a
* value in the range 0.01 to 99.
*
*/
class Subscores extends AbstractModel
{
/**
* @internal
*/
protected $avsResult;
/**
* @internal
*/
protected $billingAddress;
/**
* @internal
*/
protected $billingAddressDistanceToIpLocation;
/**
* @internal
*/
protected $browser;
/**
* @internal
*/
protected $chargeback;
/**
* @internal
*/
protected $country;
/**
* @internal
*/
protected $countryMismatch;
/**
* @internal
*/
protected $cvvResult;
/**
* @internal
*/
protected $emailAddress;
/**
* @internal
*/
protected $emailDomain;
/**
* @internal
*/
protected $emailTenure;
/**
* @internal
*/
protected $ipTenure;
/**
* @internal
*/
protected $issuerIdNumber;
/**
* @internal
*/
protected $orderAmount;
/**
* @internal
*/
protected $phoneNumber;
/**
* @internal
*/
protected $shippingAddressDistanceToIpLocation;
/**
* @internal
*/
protected $timeOfDay;
public function __construct($response, $locales = ['en'])
{
parent::__construct($response, $locales);
$this->avsResult = $this->safeArrayLookup($response['avs_result']);
$this->billingAddress = $this->safeArrayLookup($response['billing_address']);
$this->billingAddressDistanceToIpLocation
= $this->safeArrayLookup($response['billing_address_distance_to_ip_location']);
$this->browser = $this->safeArrayLookup($response['browser']);
$this->chargeback = $this->safeArrayLookup($response['chargeback']);
$this->country = $this->safeArrayLookup($response['country']);
$this->countryMismatch = $this->safeArrayLookup($response['country_mismatch']);
$this->cvvResult = $this->safeArrayLookup($response['cvv_result']);
$this->emailAddress = $this->safeArrayLookup($response['email_address']);
$this->emailDomain = $this->safeArrayLookup($response['email_domain']);
$this->emailTenure = $this->safeArrayLookup($response['email_tenure']);
$this->ipTenure = $this->safeArrayLookup($response['ip_tenure']);
$this->issuerIdNumber = $this->safeArrayLookup($response['issuer_id_number']);
$this->orderAmount = $this->safeArrayLookup($response['order_amount']);
$this->phoneNumber = $this->safeArrayLookup($response['phone_number']);
$this->shippingAddressDistanceToIpLocation
= $this->safeArrayLookup($response['shipping_address_distance_to_ip_location']);
$this->timeOfDay = $this->safeArrayLookup($response['time_of_day']);
}
}