Skip to content

CJM-124288 - Further changes for loyalty challenge state change event field group#2093

Merged
waykar-prashant merged 10 commits intoadobe:masterfrom
iewilliam:loyalty_challenge_state_event_v2
Mar 4, 2026
Merged

CJM-124288 - Further changes for loyalty challenge state change event field group#2093
waykar-prashant merged 10 commits intoadobe:masterfrom
iewilliam:loyalty_challenge_state_event_v2

Conversation

@iewilliam
Copy link
Copy Markdown
Contributor

@iewilliam iewilliam commented Feb 25, 2026

Overview

Polish provided challenge information in loyalty challenge state change event field group.


1. Reward definition and milestones (Loyalty Challenge State)

loyalty.challenge.state.schema.json

  • Reward definition — The existing reward object is extended with a rewardDefinition sub-object:

    • xdm:denomination (string) — e.g. reward currency/unit (e.g. “Stars”).
    • xdm:enabled (boolean) — whether the reward is enabled.
  • Milestones — A new xdm:milestones object on the challenge:

    • xdm:contiguous (boolean) — whether milestones must be completed in contiguous order.
    • xdm:interval (string) — interval type (e.g. task).
    • xdm:completions (array) — list of milestone completion states; each item has state, count, and optional reward (rewardValue, source).

Example updates are reflected in loyalty.challenge.state.example.1.json.


2. Task description tweaks (Loyalty Challenge Task)

loyalty.challenge.task.schema.json

  • Description — The schema-level description and/or field-level descriptions for the task have been updated for clarity and alignment with product (e.g. state, dates, variables, schedule, completion tracking).

Deprecated (retained for backward compatibility):

  • xdm:multiDay — Multi-day visit requirements for task completion (object with contiguous, days). Replaced by schedule/streak semantics.
  • xdm:currentProgress — Current progress toward task completion (object with quantity, spend, days, qualifiedEvents). Replaced by taskCompletions and the new task completion accumulators.

Example updates are reflected in loyalty.challenge.task.example.1.json.


3. completionDate on task completions (Loyalty Challenge Task Completion)

loyalty.challenge.taskCompletion.schema.json

  • completionDate — A new xdm:completionDate field (string, date-time format) indicating when the task was completed.
  • accumulators — New object with xdm:qty and xdm:spend for accumulated quantity and spend (replaces the deprecated top-level fields below).

Deprecated (retained for backward compatibility):

  • xdm:quantity — Total quantity accumulated. Use accumulators.qty instead.
  • xdm:spend — Total spend accumulated. Use accumulators.spend instead.
  • xdm:days — Number of qualified days accumulated for this task completion.
  • xdm:qualifiedEvents — List of events that provided progress toward task completion.

Example updates are reflected in loyalty.challenge.taskCompletion.example.1.json.

@iewilliam iewilliam changed the title Further changes for loyalty challenge state change event field group Further changes for loyalty challenge state change event field group (CJM-124288) Mar 3, 2026
Copy link
Copy Markdown
Collaborator

@waykar-prashant waykar-prashant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@waykar-prashant waykar-prashant self-assigned this Mar 4, 2026
@waykar-prashant waykar-prashant changed the title Further changes for loyalty challenge state change event field group (CJM-124288) CJM-124288 - Further changes for loyalty challenge state change event field group Mar 4, 2026
@waykar-prashant waykar-prashant merged commit 93b91d2 into adobe:master Mar 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants