Skip to content

[NEB-4777] Add KYC, geo, and bot-detection structured fields - #165

Open
rkumar-sift wants to merge 2 commits into
masterfrom
rkumar/NEB-4777-structured-fields
Open

[NEB-4777] Add KYC, geo, and bot-detection structured fields#165
rkumar-sift wants to merge 2 commits into
masterfrom
rkumar/NEB-4777-structured-fields

Conversation

@rkumar-sift

@rkumar-sift rkumar-sift commented Aug 26, 2026

Copy link
Copy Markdown

Purpose

Add support for the new structured fields ($nationality, $year_of_birth, $kyc, $geo, $bot_identification) per the Structured Fields TDD (NEB-4573).

Summary

  • New model classes Kyc, Geo, BotIdentification under com.siftscience.model.
  • Wired into BaseAccountFieldSet, VerificationFieldSet ($kyc only), TransactionFieldSet, BaseOrderFieldSet, LoginFieldSet ($geo/$bot_identification only).
  • Enum-valued fields ($kyc_level, $bot_identification.$result) use $-prefixed string values, consistent with other enum fields in this API (e.g. $login_status).
  • Version bump 3.22.0 → 3.23.0, CHANGES.MD/README.md updated.

Testing

  • Covered with unit tests (one per event type), full suite passing.
  • Tested with real API calls against expr across the full field/event matrix.

Update 2026-08-29

Fixed the 7 unit tests to use $-prefixed enum values instead of bare strings (per review) — the tests were written before we'd confirmed this requirement and never got updated afterward.

Update 2026-09-02

The server-side dependency (NEB-4775) is now merged and deployed to production. Integration-test coverage for this is now in a separate PR: sift-java-integration-app#9.

@rkumar-sift rkumar-sift self-assigned this Aug 26, 2026
Comment thread src/test/java/com/siftscience/CreateAccountEventTest.java Outdated
Comment thread src/test/java/com/siftscience/CreateAccountEventTest.java Outdated

@mzobro-sift mzobro-sift 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.

LGTM, please hold on with the merge until rest-api is ready in prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants