-
Notifications
You must be signed in to change notification settings - Fork 380
Expand file tree
/
Copy pathexperienceevent-loyalty-details.schema.json
More file actions
179 lines (179 loc) · 6.94 KB
/
Copy pathexperienceevent-loyalty-details.schema.json
File metadata and controls
179 lines (179 loc) · 6.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"meta:license": [
"Copyright 2022 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/xdm/context/experienceevent-loyalty-details",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Loyalty Event Details",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:tags": {
"industry": ["all"]
},
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"],
"description": "Loyalty-related event data such as discounts, coupon/points/redemption, referrals, and points gained.",
"definitions": {
"experienceevent-loyalty": {
"properties": {
"xdm:loyalty": {
"type": "object",
"description": "Captures loyalty-related attributes observed on an experience event.",
"properties": {
"xdm:discounts": {
"title": "Discounts",
"type": "array",
"description": "List of discounts applied as part of this event.",
"items": {
"type": "object",
"properties": {
"xdm:value": {
"title": "Discount Value",
"type": "number",
"description": "Monetary value of the discount applied."
},
"xdm:source": {
"title": "Discount Source",
"type": "string",
"description": "Origin of the discount (e.g., coupon, referral, pointsRedemption)."
},
"xdm:triggeredForItem": {
"title": "Triggered For Item",
"type": "string",
"description": "SKU or identifier of the item this discount is for, if applicable."
},
"xdm:scope": {
"title": "Scope",
"type": "string",
"description": "Scope of the discount (e.g., additionalCost, item, total)."
},
"xdm:promotionId": {
"title": "Promotion ID",
"type": "string",
"description": "Identifier of the promotion that triggered this discount."
}
}
}
},
"xdm:couponRedemption": {
"title": "Coupon Redemptions",
"type": "array",
"description": "Coupons redeemed during this event.",
"items": {
"type": "object",
"properties": {
"xdm:id": {
"title": "Coupon ID",
"type": "string",
"description": "Coupon code or identifier."
},
"xdm:series": {
"title": "Coupon Series",
"type": "string",
"description": "Series or campaign the coupon belongs to."
},
"xdm:seriesName": {
"title": "Coupon Series Name",
"type": "string",
"description": "Human-readable name of the coupon series."
},
"xdm:promotionId": {
"title": "Promotion ID",
"type": "string",
"description": "Identifier of the promotion this coupon is from."
}
}
}
},
"xdm:pointsRedemption": {
"title": "Points Redemption",
"type": "object",
"description": "Points redeemed as part of this event.",
"properties": {
"xdm:value": {
"title": "Points Value",
"type": "number",
"description": "Number of points redeemed."
},
"xdm:promotionId": {
"title": "Promotion ID",
"type": "string",
"description": "Identifier of the promotion governing this points redemption."
},
"xdm:loyaltyProgramId": {
"title": "Loyalty Program ID",
"type": "string",
"description": "Identifier of the loyalty program managing these points."
},
"xdm:transactionId": {
"title": "Transaction ID",
"type": "string",
"description": "Identifier of the points redemption transaction, if applicable."
}
}
},
"xdm:referralRedemption": {
"title": "Referral Redemptions",
"type": "array",
"description": "Referral codes redeemed during this event.",
"items": {
"type": "object",
"properties": {
"xdm:code": {
"title": "Referral Code",
"type": "string",
"description": "Referral code used."
},
"xdm:promotionId": {
"title": "Promotion ID",
"type": "string",
"description": "Identifier of the promotion the referral is from."
}
}
}
},
"xdm:pointsGained": {
"title": "Points Gained",
"type": "array",
"description": "Points gained as part of this event.",
"items": {
"type": "object",
"properties": {
"xdm:value": {
"title": "Points Value",
"type": "number",
"description": "Number of points gained."
},
"xdm:promotionId": {
"title": "Promotion ID",
"type": "string",
"description": "Identifier of the promotion governing this points acquisition."
},
"xdm:loyaltyProgramId": {
"title": "Loyalty Program ID",
"type": "string",
"description": "Identifier of the loyalty program managing these points."
},
"xdm:transactionId": {
"title": "Transaction ID",
"type": "string",
"description": "Identifier of the points acquisition transaction, if applicable."
}
}
}
}
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/experienceevent-loyalty"
}
],
"meta:status": "experimental"
}