Skip to content

Add CLEAR to the TransactionReport.Tag enum (STF-190)#617

Open
oschwald wants to merge 2 commits intomainfrom
greg/stf-190
Open

Add CLEAR to the TransactionReport.Tag enum (STF-190)#617
oschwald wants to merge 2 commits intomainfrom
greg/stf-190

Conversation

@oschwald
Copy link
Copy Markdown
Member

Summary

  • Commit 1 — Adds CLEAR to the TransactionReport.Tag enum with a
    matching javadoc entry. Adds a unit test verifying serialization to
    "clear" via the existing toString() override. Appends a bullet to
    the existing unreleased 4.3.0 entry in CHANGELOG.md.
  • Commit 2 — Adds a mise.toml (and generated mise.lock) so
    contributors can mise install to get a working Java + Maven
    toolchain. Matches the pattern already in minfraud-api-dotnet /
    GeoIP2-dotnet. Not STF-190 specific — separate commit for easy review.

The clear tag retracts a previously reported fraud report on a transaction
(restoring its label to "unknown", distinct from the positive NOT_FRAUD
signal). Backend support shipped in STF-15; this adds SDK support per STF-190.

Linear: https://linear.app/maxmind/issue/STF-190

Test plan

  • mise exec -- mvn test -Dtest=TransactionReportTest — 14 passed
  • mise exec -- mvn checkstyle:check — 0 violations

🤖 Generated with Claude Code

oschwald and others added 2 commits April 22, 2026 21:27
Part of STF-190. The `clear` tag retracts a previously reported fraud
report tag on a transaction, restoring its label to "unknown" (distinct
from the positive `NOT_FRAUD` signal). Backend support shipped in
STF-15; this adds SDK support.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sets up `mise` for automatic Java + Maven provisioning, matching the
pattern already in use in minfraud-api-dotnet and GeoIP2-dotnet. This
lets contributors run the full test/lint loop locally without manually
installing a JDK or Maven.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds the CLEAR tag to the TransactionReport.Tag enum and includes a test case for its serialization. It also introduces mise configuration files for development environment management. A review comment suggests pinning Java and Maven versions in mise.toml to specific versions instead of using latest to ensure environment stability.

Comment thread mise.toml
Comment on lines +10 to +11
java = "latest"
maven = "latest"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Using latest for tool versions can lead to non-deterministic environments if the lockfile is regenerated or bypassed. Since the project explicitly requires Java 17 (as noted in the CHANGELOG.md), it is safer to specify the major version to ensure the environment remains compatible with the project's requirements.

Suggested change
java = "latest"
maven = "latest"
java = "17"
maven = "3.9"

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.

1 participant