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
=========

4.5.1
4.6.0
------------------

* Deprecated `isHighRisk()` in `ShippingAddress`. 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, optional: when this library deprecated the Factors subscores (3.6.0), 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.

is removing the `shipping_address.is_high_risk` field from its responses.
The method will be removed in 5.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 says only that "the method" will be removed. In 5.0.0 the removal also takes out the canonical constructor parameter and the is_high_risk key in the toJson() output.

@Deprecated on a record component propagates to the canonical constructor parameter, but JLS 9.6.4.6 gives a deprecated parameter no effect. Code that calls the 7-argument new ShippingAddress(...), for example to build a test fixture, gets no deprecation warning on 4.6.0, even with -Xlint:all. It then fails to compile on 5.0.0.

Suggestion: say that the isHighRisk record component will be removed in 5.0.0, with its accessor and its canonical constructor parameter.

🤖 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.

4.5.0 (2026-11-18)
------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* address.
* @param distanceToIpLocation The distance in kilometers from the address to the IP location.
* This will be null if there is no value in the response.
* @param isHighRisk This returns true if the shipping address is an address
* associated with fraudulent transactions. It returns false when
* the address is not associated with increased risk. If the address
* could not be parsed or was not provided, null is returned.
* @param isHighRisk Deprecated. 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.

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: the docs do not tell callers that this value can already be null for a request that includes a shipping address, and that it will always be null after the web service removes the field. The web service already omits is_high_risk from some responses. Code that unboxes the Boolean without a null check, such as if (address.isHighRisk()), will throw NullPointerException.

The wording also differs between the two places. This Javadoc says the web service "deprecated this field". The CHANGELOG says the web service "is removing" it.

Suggestion: use the same text in both places. For example: "The minFraud web service is removing this field and already omits it from some responses. This is null when the response does not include it."

🤖 Comment by Claude Opus 5.5.

* It will be removed in 5.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: "It will be removed in 5.0.0." comes right after "This is null when the web service does not return it." In that sentence, "it" is the field, so this "It" can also read as the field. Suggest naming the thing that goes away, for example: "This record component and its accessor will be removed in 5.0.0."

🤖 Comment by Claude Opus 5.5.

* @param isInIpCountry This returns true if the address is in the IP country. It is
* false when the address is not in the IP country. If the address
* could not be parsed or was not provided or the IP address could
Expand All @@ -34,6 +34,7 @@ public record ShippingAddress(
@JsonProperty("distance_to_ip_location")
Integer distanceToIpLocation,

@Deprecated(since = "4.6.0", forRemoval = true)

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: the deprecation does not say what to use instead, or that there is no replacement. The repository CLAUDE.md ("Deprecation Strategy") says: "Include helpful deprecation messages in JavaDoc pointing to alternatives."

The accessor is implicit, so it has no @deprecated Javadoc tag. The Deprecated API page and IDE hovers show only "Deprecated, for removal" with no reason. The only reason is in the @param text.

Suggestion: add "There is no replacement." (or name the replacement, if one exists) to the @param text. If you want the reason in the Deprecated API list, declare an explicit isHighRisk() accessor with a @deprecated tag.

🤖 Comment by Claude Opus 5.5.

@JsonProperty("is_high_risk")
Boolean isHighRisk,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class ShippingAddressTest extends AbstractOutputTest {
private static final double DELTA = 1e-15;

@Test
@SuppressWarnings("removal")

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: the test covers only a shipping_address object that has is_high_risk. No test covers an object without the field, which the new Javadoc describes and which will be the normal case after the web service change.

Suggestion: add a case that deserializes a shipping_address without is_high_risk and asserts that isHighRisk() is null and that the other fields still deserialize.

🤖 Comment by Claude Opus 5.5.

public void testShippingAddress() throws Exception {
ShippingAddress address = this.deserialize(
ShippingAddress.class,
Expand Down
Loading