-
Notifications
You must be signed in to change notification settings - Fork 312
/
profile-loyalty-details.schema.json
133 lines (133 loc) · 5.99 KB
/
profile-loyalty-details.schema.json
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
{
"meta:license": [
"Copyright 2020 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/mixins/profile/profile-loyalty-details",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Loyalty Details",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:tags": {
"industry": [
"retail",
"travel_and_hospitality",
"automotive",
"health_and_life_sciences",
"high_tech",
"manufacturing",
"financial_services",
"telecom"
]
},
"meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/profile"],
"description": "Loyalty details such as ID, points, join date, program, and status. ",
"definitions": {
"loyalty-details": {
"properties": {
"xdm:loyalty": {
"type": "object",
"description": "Captures details related to the customer's loyalty rewards.",
"properties": {
"xdm:joinDate": {
"title": "Program Join Date",
"type": "string",
"format": "date-time",
"description": "Date which the visitor registered for the loyalty program.",
"meta:titleId": "profile-loyalty-details##xdm:joinDate##title##8551",
"meta:descriptionId": "profile-loyalty-details##xdm:joinDate##description##23391"
},
"xdm:loyaltyID": {
"title": "Program ID",
"type": "array",
"items": {
"type": "string"
},
"description": "The loyalty program ID(s) associated with a specific user, if they are enrolled in the client's loyalty program.",
"meta:titleId": "profile-loyalty-details##xdm:loyaltyID##title##40011",
"meta:descriptionId": "profile-loyalty-details##xdm:loyaltyID##description##22711"
},
"xdm:points": {
"title": "Program Points Balance",
"type": "number",
"description": "Current balance of the loyalty points/awards in a visitor's loyalty account.",
"meta:titleId": "profile-loyalty-details##xdm:points##title##69591",
"meta:descriptionId": "profile-loyalty-details##xdm:points##description##21771"
},
"xdm:pointsExpiration": {
"title": "Points Expiration",
"type": "array",
"items": {
"type": "object",
"properties": {
"xdm:pointsExpiring": {
"title": "Points Expiring",
"type": "number",
"description": "Point balance expiring as of the associated expiration date.",
"meta:titleId": "profile-loyalty-details##xdm:pointsExpiring##title##15431",
"meta:descriptionId": "profile-loyalty-details##xdm:pointsExpiring##description##98551"
},
"xdm:pointsExpirationDate": {
"type": "string",
"format": "date-time",
"description": "Date on which the given portion of the loyalty points expire.",
"meta:descriptionId": "profile-loyalty-details##xdm:pointsExpirationDate##description##91981"
}
}
},
"meta:titleId": "profile-loyalty-details##xdm:pointsExpiration##title##13161"
},
"xdm:pointsRedeemed": {
"title": "Points Redeemed",
"type": "number",
"description": "Amount of points applied toward a purchase or otherwise redeemed.",
"meta:titleId": "profile-loyalty-details##xdm:pointsRedeemed##title##651",
"meta:descriptionId": "profile-loyalty-details##xdm:pointsRedeemed##description##53491"
},
"xdm:program": {
"title": "Program Name",
"type": "string",
"description": "This should define the loyalty progam in which a visitor is enrolled.",
"meta:titleId": "profile-loyalty-details##xdm:program##title##27571",
"meta:descriptionId": "profile-loyalty-details##xdm:program##description##36731"
},
"xdm:upgradeDate": {
"title": "Upgrade Date",
"type": "string",
"description": "Date which the customer was upgraded to the next tier level.",
"meta:titleId": "profile-loyalty-details##xdm:upgradeDate##title##76171",
"meta:descriptionId": "profile-loyalty-details##xdm:upgradeDate##description##59701"
},
"xdm:status": {
"title": "Status",
"type": "string",
"description": "Captures the visitor's loyalty progam status, such as active, disabled, or suspended.",
"meta:titleId": "profile-loyalty-details##xdm:status##title##74261",
"meta:descriptionId": "profile-loyalty-details##xdm:status##description##54341"
},
"xdm:tier": {
"title": "Tier",
"type": "string",
"description": "Captures the loyalty progam tier in which a visitor is enrolled.",
"meta:titleId": "profile-loyalty-details##xdm:tier##title##75921",
"meta:descriptionId": "profile-loyalty-details##xdm:tier##description##54761"
}
},
"meta:descriptionId": "profile-loyalty-details##xdm:loyalty##description##85311"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/loyalty-details"
}
],
"meta:status": "stable",
"meta:createdDate": "2021-02-19",
"meta:titleId": "profile-loyalty-details##title##15641",
"meta:descriptionId": "profile-loyalty-details##description##74351"
}