Skip to content

NEB-4781: Add KYC, geo, and bot-detection structured fields - #102

Open
rkumar-sift wants to merge 4 commits into
masterfrom
rkumar/structured-fields-ruby
Open

NEB-4781: Add KYC, geo, and bot-detection structured fields#102
rkumar-sift wants to merge 4 commits into
masterfrom
rkumar/structured-fields-ruby

Conversation

@rkumar-sift

@rkumar-sift rkumar-sift commented Aug 30, 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

  • Ruby's client.track(event, properties) is a thin pass-through and does no field validation — properties are sent as-is, so no client code changes are needed for the new fields to work.
  • New "New KYC Signals, Geo & Bot Detection" README section with examples for $verification, $create_account, $login, and $transaction, using $-prefixed enum values ($basic/$full, $human/$bot/$suspected), consistent with other enum fields in this API (e.g. $login_status).
  • Version bump 4.6.0 → 4.7.0, HISTORY updated.

Testing

  • Added spec/unit/client_structured_fields_spec.rb, asserting the full field set round-trips correctly through client.track.

Update 2026-09-02

Server-side dependency (NEB-4775) is now merged and deployed to production.

  • Added the new fields to all 7 relevant test_integration_app/events_api/test_events_api.rb fixtures, verified against real prod.
  • Per review, made the HISTORY entry list each field/event combination specifically instead of one generic line.

@rkumar-sift rkumar-sift self-assigned this Aug 30, 2026

@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 update the description in changelog

Comment thread HISTORY Outdated
@rkumar-sift

Copy link
Copy Markdown
Author

LGTM, please update the description in changelog

Done in 5309e0d — HISTORY now lists each field/event combination specifically instead of one generic line, matching the level of detail in the Java PR.

@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

Comment thread test_integration_app/events_api/test_events_api.rb Outdated
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