Skip to content

STF-2488: Update verification input documentation - #310

Merged
horgh merged 2 commits into
mainfrom
greg/stf-2488-update-api-reference-documentation-on-minfraud
Dec 1, 2026
Merged

horgh merged 2 commits into
mainfrom
greg/stf-2488-update-api-reference-documentation-on-minfraud

Conversation

@oschwald

@oschwald oschwald commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • true for the verification result now means that your system considers the email address or phone number verified as of the time of the event. An earlier completed verification still counts, even if a newer attempt is pending or failed.
  • false means that the email address or phone number is not verified. This includes a pending or failed verification and a contact with no verification attempt.
  • If your system does not track verification, leave out the field.
  • The verification time goes only with true.
  • The phone verification method is for the most recent completed verification. If the phone number is not verified, it can be the method of the most recent attempt.

This is a documentation change. No field names, types, or values change.

STF-2488

🤖 Generated with Claude Code

The shipping example sets the phone verification result to false.
The verification time applies only to a completed verification.

STF-2488

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@oschwald
oschwald requested review from horgh and a balanced review from Copilot November 23, 2026 23:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ad348245-9507-4c3e-9884-534dc77544a3
Commits

Reviewing files that changed from the base of the PR and between cabf584 and 66400bd.

Files selected for processing: 3

  • CHANGELOG.md
  • README.md
  • src/MinFraud.php

No actionable comments were generated in the recent review.

Walkthrough

The changelog and API documentation clarify email and phone verification input semantics. The README shipping example no longer passes phoneVerificationTime. No implementation or public signatures changed.

Changes: Verification input documentation

Layer / File(s) Summary
Document verification input semantics
src/MinFraud.php, CHANGELOG.md, README.md
The API documentation and changelog describe verification status, completion times, and attempted phone verification. The README shipping example removes the phoneVerificationTime argument.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · previous review cabf5

This change clarifies the documented meaning of email and phone verification inputs and removes a verification time from the shipping example. It does not change runtime behavior and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names a ticket ID and 'Update verification input documentation'. The changeset updates verification-input documentation in src/MinFraud.php, README.md, and CHANGELOG.md (email and phone veri…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names a ticket ID and 'Update verification input documentation'. The changeset updates verification-input documentation in src/MinFraud.php, README.md, and CHANGELOG.md (email and phone verification flags, verification time, and phone verification method). The title covers the main change. The ticket prefix adds no meaning but does not make the title misleading.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit reads the fields with care,
“Completed” marks the time to share.
A pending try does not undo
A verification finished through.
The shipping sample hops ahead,
With one less argument to shed.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3575cc99-de8d-4b8e-be12-ecc8d8c47744
Commits

Reviewing files that changed from the base of the PR and between 24fcb2b and cabf584.

Files selected for processing: 2

  • CHANGELOG.md
  • src/MinFraud.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@oschwald
oschwald force-pushed the greg/stf-2488-update-api-reference-documentation-on-minfraud branch from 24fcb2b to cabf584 Compare November 30, 2026 20:11
Copilot AI balanced review requested due to automatic review settings November 30, 2026 20:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@oschwald
oschwald force-pushed the greg/stf-2488-update-api-reference-documentation-on-minfraud branch from cabf584 to 5f16e99 Compare November 30, 2026 20:24
Copilot AI balanced review requested due to automatic review settings November 30, 2026 20:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

`true` now means that your system considers the email address or
phone number verified as of the time of the event. `false` means that
it is not verified, for any reason. Before, the documentation said
not to set the value if no verification was attempted.

Set the verification time only with `true`. If your system does not
track verification, leave the value unset.

STF-2488

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@oschwald
oschwald force-pushed the greg/stf-2488-update-api-reference-documentation-on-minfraud branch from 5f16e99 to 66400bd Compare November 30, 2026 20:46
Copilot AI balanced review requested due to automatic review settings November 30, 2026 20:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Comment thread CHANGELOG.md
`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

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.

Important: this entry does not tell users that a contact with no verification attempt now takes false.

The 3.8.0 entry below still says "Omit phone_was_verification_successful if no verification was attempted" and "Omit was_verification_successful if no verification was attempted". The new docblocks reverse that: a contact that you did not try to verify takes false. This entry gives only "pending or failed" as examples of false. A user who set up the integration from the 3.8.0 entry will read this entry and keep omitting the flag. The web service then reads these contacts as "does not track verification", which the new docs say is not the same as false.

Suggested fix: say it plainly, for example: "Set them to false if the email address or phone number is not verified, including when its only verification is pending or failed and when you did not try to verify it. Before, the documentation said to omit them if you did not try to verify." This also fixes the "Set them ... if it is not verified" pronoun mismatch.

🤖 Comment by Claude Opus 5.5.

Comment thread src/MinFraud.php
* This includes one whose only
* verification is pending or failed, and
* one that you did not try to verify.
* Omitting this is not equivalent to

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.

The text leaves out the decision to send true or false on every request. The OpenAPI spec and the product decision on STF-2488 say: "If your system tracks email verification, send true or false for every request that includes this email address." Without it, a user can send the flag only on the event where the verification happened (for example, account creation) and omit it on later purchases. The docs say an omitted value is not the same as false, so those later requests then look like "does not track verification".

Suggested fix: after "Omitting this is not equivalent to false.", add "If your system tracks email verification, set this for every request that includes this email address." Make the same change in the billing (lines 654-657) and shipping (lines 763-765) $phoneWasVerificationSuccessful docblocks, with "phone verification" and "this phone number".

🤖 Comment by Claude Opus 5.5.

Comment thread src/MinFraud.php
* one that you did not try to verify.
* Omitting this is not equivalent to
* `false`. If your system does not track
* email verification, omit this.

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.

The text leaves out "The choice can affect risk scores." The OpenAPI spec keeps this sentence, and the product decision on STF-2488 says to keep it. It tells users why the choice between false and omitting matters.

Suggested fix: add "The choice can affect risk scores." at the end of this docblock, and at the end of the billing (line 657) and shipping (line 765) $phoneWasVerificationSuccessful docblocks.

🤖 Comment by Claude Opus 5.5.

Comment thread README.md
@@ -204,7 +204,6 @@ $request = $mf->withDevice(
phoneCountryCode: '1',
phoneVerificationMethod: 'network',
phoneWasVerificationSuccessful: false,

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 README now leaves out the shipping phone verification time because the flag is false. The tests that mirror this example still send that pair, so they now go against the new docs:

  • tests/data/minfraud/full-request.json line 49 sends "phone_verification_time": "2026-10-01T14:31:00Z" with "phone_was_verification_successful": false.
  • testFullInsightsRequestUsingNamedArgs in tests/MaxMind/Test/MinFraudTest.php line 530 sets phoneVerificationTime: '2026-10-01T14:31:00Z' with phoneWasVerificationSuccessful: false.
  • testEmailVerificationWithHashing (lines 1203-1204 and 1210-1211) sends verification_time with was_verification_successful => false.

Suggested fix: remove the shipping phone_verification_time from the fixture and the named-args test, so that the README and the full request match again. In the hashing test, set was_verification_successful to true or remove verification_time.

🤖 Comment by Claude Opus 5.5.

Comment thread CHANGELOG.md
3.8.1
------------------

* Updated the documentation for the email and phone verification inputs. Set

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 mention the new guidance for phoneVerificationMethod / phone_verification_method. The docblocks now say that the method is for the most recent completed verification. If the phone number is not verified, the method can be the method of the most recent attempt, and you do not set it if you did not try to verify. The PR description lists this change, but a user who reads only the changelog keeps sending the method of the latest attempt, even when an earlier verification makes the flag true.

Suggested fix: add a sentence about the phone verification method to this entry.

🤖 Comment by Claude Opus 5.5.

Comment thread CHANGELOG.md
------------------

* Updated the documentation for the email and phone verification inputs. Set
`wasVerificationSuccessful` and `phoneWasVerificationSuccessful` to `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: this entry names only the named arguments wasVerificationSuccessful and phoneWasVerificationSuccessful. Users who pass arrays use was_verification_successful, phone_was_verification_successful, verification_time, and phone_verification_time. The 3.8.0 entry names both forms. A user who searches the changelog for was_verification_successful finds only the 3.8.0 entry, which says to omit the flag if no verification was attempted.

Suggested fix: name the array keys too, as the 3.8.0 entry does.

🤖 Comment by Claude Opus 5.5.

Comment thread src/MinFraud.php
* address succeeded, for example by
* @param bool|null $wasVerificationSuccessful Whether the end user has verified that
* they control the email address, as of
* the time of the event, for example by

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: "as of the time of the event, for example by confirming a link sent to the address" puts the example after the time phrase. It reads as an example of the time, not of how the user verified the address.

maxmind/openapi#28 puts the example in a separate sentence: "For example, the user clicked a link that you sent to the address." Suggest the same here, for example: "Whether the end user has verified that they control the email address, as of the time of the event. For example, the user confirmed a link sent to the address."

The same comment is on the Java and .NET PRs.

🤖 Comment by Claude Opus 5.5.

Comment thread CHANGELOG.md
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

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 that verificationTime / verification_time changed meaning. The 3.8.0 documentation described it as "The date and time of the most recent attempt to verify the email address". Now it is the time that the user completed the verification, and only for a true value. A caller that sends the time of the latest attempt, for example the time it sent the link, gets no signal to change.

Suggest one more sentence, for example: "The verification time is now the time of the verification behind a true value, not the time of the most recent attempt."

The Java PR has the same comment.

🤖 Comment by Claude Opus 5.5.

@horgh
horgh merged commit 51183df into main Dec 1, 2026
45 checks passed
@horgh
horgh deleted the greg/stf-2488-update-api-reference-documentation-on-minfraud branch December 1, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants