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:
<?php
namespace MaxMind\MinFraud\Model;
/**
* Class ShippingAddress
* @package MaxMind\MinFraud\Model
*
* This model contains properties of the shipping address.
*
* @property integer|null $distanceToBillingAddress The distance in kilometers
* from the shipping address to billing address.
* @property boolean|null $isHighRisk This property is true if the shipping
* address is in the IP country. The property is false when the address is not
* in the IP country. If the shipping address could not be parsed or was not
* provided or the IP address could not be geolocated, then the property is
* null.
*/
class ShippingAddress extends Address
{
/**
* @internal
*/
protected $isHighRisk;
/**
* @internal
*/
protected $distanceToBillingAddress;
public function __construct($response, $locales = ['en'])
{
parent::__construct($response, $locales);
$this->isHighRisk = $this->safeArrayLookup($response['is_high_risk']);
$this->distanceToBillingAddress
= $this->safeArrayLookup($response['distance_to_billing_address']);
}
}