12 Commits

Author SHA1 Message Date
Mayuresh
1be757a165 fix(reqpreprocessor): support camelCase context attributes for beckn spec migration
- Add transactionId and messageId as camelCase aliases in model.go contextKeys map,
  pointing to the same ContextKeyTxnID and ContextKeyMsgID constants. This allows
  adapter configs to reference either form without failing startup validation.

- In reqpreprocessor, add firstNonNil() helper for subscriber/caller ID lookups
  so bap_id/bapId and bpp_id/bppId are both resolved correctly regardless of
  which beckn spec version the payload uses. snake_case takes precedence when both
  are present.

- Add snakeToCamel() helper used in the context key loop so a single config entry
  (e.g. transaction_id) automatically also checks the camelCase form (transactionId)
  without requiring any config file changes.

- Add TestSnakeToCamel, TestCamelCaseSubscriberID, TestCamelCaseContextKeys to
  cover all new code paths.

Fixes #637

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 15:40:36 +05:30
Manendra Pal Singh
8948479dea Feat: Update the logger config to show the parent_id 2026-01-28 21:29:37 +05:30
ameersohel45
afeffeefad chore: update import statements from beckn to beckn-one in beckn-onix 2025-09-15 22:58:23 +05:30
MohitKatare-protean
fc296b8ef3 code fix as per the review comments 2025-04-04 15:45:15 +05:30
MohitKatare-protean
49e460f61d fixed linting iessues 2025-04-04 14:59:40 +05:30
MohitKatare-protean
593b76427c resolved merge conflict 2025-04-04 12:48:36 +05:30
MohitKatare-protean
9c45c67492 Merge branch 'beckn-onix-v1.0-develop' of https://github.com/beckn/beckn-onix into feature/contex_id 2025-04-04 12:48:17 +05:30
tanyamadaan
1ae7a16461 fix in type 2025-04-04 11:06:54 +05:30
tanyamadaan
87329bfb9d Bug Fix for ReqPreProcessor plugin 2025-04-03 16:08:57 +05:30
MohitKatare-protean
01588fc866 Added test case for the contextKeys 2025-04-03 15:17:02 +05:30
MohitKatare-protean
0ee2010338 change for the context keys 2025-04-03 12:35:13 +05:30
MohitKatare-protean
f0e39e34e7 updated as per the review comments 2025-03-30 19:13:02 +05:30