From c9639feba1697a090041917330734938777756ac Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 1 Dec 2026 22:09:48 +0000 Subject: [PATCH] Deprecate ShippingAddress.is_high_risk The minFraud web service is removing shipping_address.is_high_risk from its responses. Mark the attribute deprecated for removal in 4.0.0, and start a 3.5.0 section, since a deprecation needs a minor release. STF-2532 Co-Authored-By: Claude Opus 5.5 --- HISTORY.rst | 8 ++++++++ src/minfraud/models.py | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 9398ff6..b18a1aa 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,14 @@ History ------- +3.5.0 +++++++++++++++++++ + +* Deprecated the ``is_high_risk`` attribute of + ``minfraud.models.ShippingAddress``. The minFraud web service is removing + the ``shipping_address.is_high_risk`` field from its responses. The + attribute will be removed in 4.0.0. + 3.4.0 (2026-11-18) ++++++++++++++++++ diff --git a/src/minfraud/models.py b/src/minfraud/models.py index 1cfaada..139b66a 100644 --- a/src/minfraud/models.py +++ b/src/minfraud/models.py @@ -535,9 +535,13 @@ class ShippingAddress(_Serializable): IP address could not be geolocated, the property will be ``None``.""" is_high_risk: bool | None - """This property is ``True`` if the shipping address is high risk. - If the address could not be parsed or was not provided, the property is - ``None``.""" + """This is ``True`` if the shipping address is associated with fraudulent + transactions. The minFraud web service deprecated this field. This is + ``None`` when the web service does not return it. + + .. deprecated:: 3.5.0 + This attribute will be removed in 4.0.0. + """ distance_to_billing_address: int | None """The distance in kilometers from the