Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"_id": "personId1_challengeId1",
"_experience": {
"ajo": {
"loyalty": {
"challenge": {
"description": "Complete your morning routine challenge this week and earn bonus points!",
"reward": "100 points",
"tasks": [
{
"name": "breakfast_purchase_challenge",
"description": "Purchase 3 breakfast items during morning hours for 2 consecutive days",
"excludedItemLabels": [
"PROMO-ITEM-001",
"GIFT-CARD-100"
],
"includedItemLabels": [
"BREAKFAST-SANDWICH-001",
"COFFEE-LATTE-16OZ",
"BAGEL-CREAM-CHEESE",
"OATMEAL-CLASSIC"
],
"qtyMin": 3,
"spendMin": 30.0,
"multiDay": {
"contiguous": true,
"days": 2
},
"maxRepeats": 2,
"reward": "50 points"
}
],
"timeOfDay": {
"end": 900,
"start": 720
}
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"_id": "personId2_challengeId5",
"_experience": {
"ajo": {
"loyalty": {
"challenge": {
"description": "Spend $30 on lunch items this week and get rewarded!",
"tasks": [
{
"name": "lunch_spend_challenge",
"description": "Purchase at least $30 worth of lunch menu items during lunch hours",
"excludedItemLabels": [
"ALCOHOL-BEER-001",
"ALCOHOL-WINE-002",
"GIFT-CARD-050"
],
"includedItemLabels": [
"SANDWICH-TURKEY-CLUB",
"SALAD-CAESAR",
"SOUP-TOMATO-BASIL",
"WRAP-CHICKEN-AVOCADO",
"BOWL-POKE-TUNA",
"BURGER-VEGGIE"
],
"spendMin": 30.00,
"maxRepeats": 1,
"reward": "150 points"
}
],
"timeOfDay": {
"end": 840,
"start": 660
}
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"meta:license": [
"Copyright 2025 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/ajo/loyalty/challenge-personalization",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Challenge Personalization",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:extends": ["https://ns.adobe.com/xdm/data/record"],
"description": "Personalization settings for loyalty challenges including task configurations, product restrictions, goals, and time windows.",
"definitions": {
"challenge-personalization": {
"properties": {
"https://ns.adobe.com/experience/ajo/loyalty/challenge": {
"title": "Challenge",
"type": "object",
"description": "Challenge personalization details.",
"properties": {
"https://ns.adobe.com/experience/ajo/loyalty/description": {
"title": "Description",
"type": "string",
"description": "Personalized challenge description."
},
"https://ns.adobe.com/experience/ajo/loyalty/reward": {
"title": "Reward",
"type": "string",
"description": "Reward for completing the entire challenge."
},
"https://ns.adobe.com/experience/ajo/loyalty/tasks": {
"title": "Tasks",
"type": "array",
"description": "List of tasks within the challenge.",
"items": {
"type": "object",
"required": [
"https://ns.adobe.com/experience/ajo/loyalty/name"
],
"properties": {
"https://ns.adobe.com/experience/ajo/loyalty/name": {
"title": "Task Name",
"type": "string",
"description": "Name of the task to personalize."
},
"https://ns.adobe.com/experience/ajo/loyalty/description": {
"title": "Task Description",
"type": "string",
"description": "Personalized task description."
},
"https://ns.adobe.com/experience/ajo/loyalty/excludedItemLabels": {
"title": "Excluded Item Labels",
"type": "array",
"description": "List of product SKU/categories/labels excluded from qualifying for this task.",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"https://ns.adobe.com/experience/ajo/loyalty/includedItemLabels": {
"title": "Included Item Labels",
"type": "array",
"description": "List of product SKUs/categories/labels that can qualify for this task.",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"https://ns.adobe.com/experience/ajo/loyalty/qtyMin": {
"title": "Minimum Quantity",
"type": "number",
"description": "Target quantity to achieve."
},
"https://ns.adobe.com/experience/ajo/loyalty/spendMin": {
"title": "Minimum Spend",
"type": "number",
"description": "Target spending amount to achieve."
},
"https://ns.adobe.com/experience/ajo/loyalty/multiDay": {
"title": "multiDay",
"type": "object",
"description": "Multi-day visit requirements for task completion.",
"properties": {
"https://ns.adobe.com/experience/ajo/loyalty/contiguous": {
"title": "Contiguous",
"type": "boolean",
"description": "Whether the visits must be on consecutive days."
},
"https://ns.adobe.com/experience/ajo/loyalty/days": {
"title": "Days",
"type": "integer",
"description": "Number of qualified days required."
}
}
},
"https://ns.adobe.com/experience/ajo/loyalty/maxRepeats": {
"title": "Max Repeats",
"type": "integer",
"description": "Maximum number of times this task can be repeated."
},
"https://ns.adobe.com/experience/ajo/loyalty/reward": {
"title": "Reward",
"type": "string",
"description": "Reward for completing this task."
}
}
}
},
"https://ns.adobe.com/experience/ajo/loyalty/timeOfDay": {
"title": "Time of Day",
"type": "object",
"description": "Time window during the day for which the challenge is active.",
"properties": {
"https://ns.adobe.com/experience/ajo/loyalty/start": {
"title": "Start",
"type": "integer",
"description": "Start time in minutes from midnight (e.g., 720 for 12:00 PM)."
},
"https://ns.adobe.com/experience/ajo/loyalty/end": {
"title": "End",
"type": "integer",
"description": "End time in minutes from midnight (e.g., 900 for 3:00 PM)."
}
}
}
}
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/data/record"
},
{
"$ref": "#/definitions/challenge-personalization"
}
],
"meta:status": "experimental"
}