ShippingAddress
extends Address
in package
Model containing properties of the shipping address.
Table of Contents
- $distanceToBillingAddress : int|null
- $distanceToIpLocation : int|null
- $isHighRisk : bool|null
- $isInIpCountry : bool|null
- $isPostalInCity : bool|null
- $latitude : float|null
- $longitude : float|null
- __construct() : mixed
Properties
$distanceToBillingAddress read-only
public
int|null
$distanceToBillingAddress
The distance in kilometers from the shipping address to billing address.
$distanceToIpLocation read-only
public
int|null
$distanceToIpLocation
The distance in kilometers from the address to the IP location.
$isHighRisk read-only
public
bool|null
$isHighRisk
This property is true if the shipping
address is an address associated with fraudulent transactions. The property
is false when the address is not associated with increased risk. The
property will be null
when a shipping address is not provided.
$isInIpCountry read-only
public
bool|null
$isInIpCountry
This property is true if the address is in the IP country. The property is false when the address is not in the IP country. If the address could not be parsed or was not provided or if the IP address could not be geolocated, the property will be null.
$isPostalInCity read-only
public
bool|null
$isPostalInCity
This property is true if the postal code provided with the address is in the city for the address. The property is false when the postal code is not in the city. If the address was not provided or could not be parsed, the property will be null.
$latitude read-only
public
float|null
$latitude
The latitude associated with the address.
$longitude read-only
public
float|null
$longitude
The longitude associated with the address.
Methods
__construct()
public
__construct(array<string|int, mixed>|null $response[, array<string|int, mixed> $locales = ['en'] ]) : mixed
Parameters
- $response : array<string|int, mixed>|null
- $locales : array<string|int, mixed> = ['en']