Skip to content

[NEB-4779] Add KYC, geo, and bot-detection structured fields - #122

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

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

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

  • Python's client.track(event_type, properties) is fully generic and does no field validation — properties are sent as-is, so no client code changes are needed for the new fields to work.
  • Extended the README's $transaction example with $kyc/$geo/$bot_identification, using $-prefixed enum values ($basic/$full, $human/$bot/$suspected), consistent with other enum fields in this API (e.g. $login_status).
  • Version bump 6.0.0 → 6.1.0, CHANGES.md updated.

Testing

  • Full unit suite passing (python -m unittest discover, 83 tests).

Update 2026-09-02

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

  • Added the new fields to test_integration_app/events_api/test_events_api.py (create_account, update_account, login, transaction, build_create_order_event, verification), verified against real prod.
  • Made the CHANGES.md 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.

please add new fields in tests in the test_integration_app/events_api/test_events_api.py

Comment thread CHANGES.md Outdated
@rkumar-sift

Copy link
Copy Markdown
Author

please add new fields in tests in the test_integration_app/events_api/test_events_api.py

Done in 14ddbc3. Added to create_account, update_account, login, transaction, build_create_order_event (covers create_order and update_order), and verification. Verified the exact payload shapes against production directly (curl) before pushing, all returning status:0.

@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

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