diff --git a/CHANGELOG.md b/CHANGELOG.md index 23fd7186..600683cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ CHANGELOG 9.3.0 (unreleased) ------------------ +* Deprecated the `isHighRisk` property on `response.shippingAddress`. The + minFraud web service is removing the `shipping_address.is_high_risk` field + from its responses. The property will be removed in 10.0.0. * Updated the documentation for the email and phone verification inputs. Set `wasVerificationSuccessful` and `phoneWasVerificationSuccessful` to `true` if your system considers the email address or phone number verified as of diff --git a/src/response/records.ts b/src/response/records.ts index 2dfaf207..394830c9 100644 --- a/src/response/records.ts +++ b/src/response/records.ts @@ -335,17 +335,19 @@ export interface Phone { */ export interface ShippingAddress { /** - * 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`. + * This is `true` if the shipping address is associated with fraudulent + * transactions. The minFraud web service deprecated this field. This is + * `undefined` when the web service does not return it. + * + * @category Deprecated + * @deprecated This property will be removed in 10.0.0. */ readonly isHighRisk: boolean; /** * 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`. + * the property is `undefined`. */ readonly isPostalInCity?: boolean; /** @@ -368,7 +370,7 @@ export interface ShippingAddress { * 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`. + * geolocated, the property is `undefined`. */ readonly isInIpCountry?: boolean; } @@ -378,7 +380,7 @@ export interface BillingAddress { * 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`. + * the property is `undefined`. */ readonly isPostalInCity?: boolean; /** @@ -397,7 +399,7 @@ export interface BillingAddress { * 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`. + * geolocated, the property is `undefined`. */ readonly isInIpCountry?: boolean; } diff --git a/src/response/web-records.ts b/src/response/web-records.ts index c2cc302b..24de5fd5 100644 --- a/src/response/web-records.ts +++ b/src/response/web-records.ts @@ -108,6 +108,7 @@ export interface EmailWebRecord { } export interface ShippingAddressWebRecord { + /** @deprecated This property will be removed in 10.0.0. */ readonly is_high_risk: boolean; readonly is_postal_in_city?: boolean; readonly latitude: number;