Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
CHANGELOG
=========

3.8.1
3.9.0
------------------

* Deprecated `isHighRisk` in `MaxMind\MinFraud\Model\ShippingAddress`. The

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, optional: when this library deprecated the Factors subscores (3.2.0-beta.2), the CHANGELOG entry linked to the minFraud release notes. Consider a link to the release note for this removal, so users can find the date and the reason. If this release ships before that release note is published, ignore this.

🤖 Comment by Claude Opus 5.5.

minFraud web service is removing the `shipping_address.is_high_risk` field
from its responses. The property will be removed in 4.0.0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this entry does not say what callers will see. After the web service stops sending the field, isHighRisk is null on every response, including responses for requests with a shipping address. Before, null meant that the request had no shipping address. Code that checks isHighRisk === false to mean "low risk" will stop matching, with no error.

Suggest one more sentence, for example: "Until then, the property is null when the web service does not return the field."

🤖 Comment by Claude Opus 5.5.

* 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)
------------------
Expand Down
10 changes: 6 additions & 4 deletions src/MinFraud/Model/ShippingAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this says the web service "deprecated this field", but the changelog says the web service "is removing" it from its responses. "Deprecated" can suggest that the field is still sent. The removal is what makes the value null, and the web service already leaves the field out of some responses.

Suggest the changelog wording here, for example: "The minFraud web service is removing this field from its responses. This is null when the web service does not return it."

🤖 Comment by Claude Opus 5.5.

* deprecated this field. This is `null` when the web
* service does not return it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, optional: no test covers the case that this doc now describes as normal. tests/MaxMind/Test/MinFraud/Model/ShippingAddressTest.php always sets is_high_risk => true, and the Insights/Factors fixtures (tests/data/minfraud/*-response.json) also include the field. No test builds a ShippingAddress without is_high_risk and checks that isHighRisk is null and that jsonSerialize() leaves out is_high_risk.

The runtime code does not change in this PR, so this is a regression guard for the period before 4.0.0, not a test of this change.

🤖 Comment by Claude Opus 5.5.

*
* @deprecated 3.9.0 this property will be removed in 4.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, optional: the @deprecated tag (and the changelog entry) does not say what to use instead. The other deprecations in this repo name a replacement, for example @deprecated use riskScoreReasons instead in src/MinFraud/Model/Factors.php and @deprecated use RiskScoreReason instead in src/MinFraud/Model/Subscores.php. If the web service has no replacement for this signal, saying "there is no replacement" tells users that they do not need to search for one.

🤖 Comment by Claude Opus 5.5.

*/
public readonly ?bool $isHighRisk;

Expand Down
Loading