From be3aa390da3e02d0f521c9d415ff46b6e2d39b9c Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 1 Dec 2026 22:09:27 +0000 Subject: [PATCH] Deprecate ShippingAddress::$isHighRisk The minFraud web service is removing shipping_address.is_high_risk from its responses. Mark the property deprecated for removal in 4.0.0, and change the next release to 3.9.0, since a deprecation needs a minor release. STF-2532 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 +++++-- src/MinFraud/Model/ShippingAddress.php | 10 ++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 210bf2f4..4c5ac3db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,19 @@ CHANGELOG ========= -3.8.1 +3.9.0 ------------------ +* Deprecated `isHighRisk` in `MaxMind\MinFraud\Model\ShippingAddress`. The + minFraud web service is removing the `shipping_address.is_high_risk` field + from its responses. The property will be removed in 4.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 the time of the event. Set them to `false` if it is not verified, for example if its only verification is pending or failed. If your system does not track verification, leave them unset. Set a verification time only when - the value is `true`. There are no code changes. + the value is `true`. This is a documentation change. 3.8.0 (2026-11-18) ------------------ diff --git a/src/MinFraud/Model/ShippingAddress.php b/src/MinFraud/Model/ShippingAddress.php index cd977a60..bbd948ba 100644 --- a/src/MinFraud/Model/ShippingAddress.php +++ b/src/MinFraud/Model/ShippingAddress.php @@ -18,10 +18,12 @@ class ShippingAddress extends Address public readonly ?int $distanceToBillingAddress; /** - * @var bool|null 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. + * @var bool|null This is true if the shipping address is associated with + * fraudulent transactions. The minFraud web service + * deprecated this field. This is `null` when the web + * service does not return it. + * + * @deprecated 3.9.0 this property will be removed in 4.0.0 */ public readonly ?bool $isHighRisk;