Skip to content

Apply BehaviorPromoCode to CustomerBehaviors in rapid identification#42

Merged
zarathustra323 merged 2 commits into
mainfrom
fix/behavior-promo-code
May 29, 2026
Merged

Apply BehaviorPromoCode to CustomerBehaviors in rapid identification#42
zarathustra323 merged 2 commits into
mainfrom
fix/behavior-promo-code

Conversation

@brandonbk
Copy link
Copy Markdown
Member

@brandonbk brandonbk commented May 29, 2026

Summary

  • Per Omeda's API docs, PromoCode on the Customer Behavior Element has been deprecated in favor of BehaviorPromoCode
  • The resolver now sets BehaviorPromoCode on each behavior in the CustomerBehaviors array, using the top-level promoCode as the value (with optional per-behavior override via a new behaviorPromoCode field on the behavior input)
  • Added optional behaviorPromoCode: String to RapidCustomerIdentificationBehaviorInput — callers can pass a behavior-specific promo code; if absent, falls back to the top-level promoCode
  • Top-level PromoCode field is preserved for backwards compatibility

Test plan

  • Trigger a login link send on a site with omedaPromoCodePrefix configured and confirm the promo code appears on the resulting customer behavior in the Omeda portal
  • Verify existing behavior (no behaviorPromoCode on input) still correctly falls back to top-level promoCode

🤖 Generated with Claude Code

brandonbk and others added 2 commits May 29, 2026 06:59
Per Omeda's API docs, PromoCode on the Customer Behavior element has
been deprecated in favor of BehaviorPromoCode. The resolver now sets
BehaviorPromoCode on each behavior, using a per-behavior override if
provided (new optional behaviorPromoCode field on the behavior input),
falling back to the top-level promoCode value. The top-level PromoCode
field is preserved for backwards compatibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zarathustra323 zarathustra323 merged commit bdb5ee7 into main May 29, 2026
5 checks passed
@zarathustra323 zarathustra323 deleted the fix/behavior-promo-code branch May 29, 2026 12:11
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