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