forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile-travel-preferences.schema.json
More file actions
344 lines (344 loc) · 18.9 KB
/
profile-travel-preferences.schema.json
File metadata and controls
344 lines (344 loc) · 18.9 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
{
"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/travel-preferences",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Travel Preferences",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:tags": {
"industry": [
"travel_and_hospitality"
]
},
"meta:intendedToExtend": [
"https://ns.adobe.com/xdm/context/profile"
],
"description": "Tracks a user's travel preferences, including home airport code, meal preferences, seating preferences, etc.",
"definitions": {
"travel-preferences": {
"properties": {
"xdm:travelPreferences": {
"type": "object",
"description": "Captures details related to the users's travel preferences.",
"properties": {
"xdm:seat": {
"title": "Seat",
"type": "string",
"enum": [
"noPreference",
"aisle",
"window",
"middle"
],
"meta:enum": {
"noPreference": "No Preference",
"aisle": "Aisle",
"window": "Window",
"middle": "Middle"
},
"description": "Captures the user's preferred seat type for flights.",
"meta:titleId": "travel-preferences##xdm:seat##title##40251",
"meta:descriptionId": "travel-preferences##xdm:seat##description##20281"
},
"xdm:seatSection": {
"title": "Seat Section",
"type": "string",
"enum": [
"noPreference",
"forward",
"bulkhead",
"exitRow",
"rear"
],
"meta:enum": {
"noPreference": "No Preference",
"forward": "Forward",
"bulkhead": "Bulkhead",
"exitRow": "Exit Row",
"rear": "Rear"
},
"description": "Captures the user's preferred seat sectionfor flights.",
"meta:titleId": "travel-preferences##xdm:seatSection ##title##18591",
"meta:descriptionId": "travel-preferences##xdm:seatSection ##description##77291"
},
"xdm:meal": {
"title": "Meal",
"type": "string",
"enum": [
"regularMeal",
"blandLowResidue",
"childMeal",
"diabeticMeal",
"fruitPlatter",
"glutenFreeMeal",
"infantBabyMeal",
"kosherMeal",
"lowCalorieMeal",
"lowSaltSodiumMeal",
"halalMeal",
"noSaltMeal",
"nonLactoseMeal",
"peanutFreeMeal",
"seafoodMeal",
"vegLactoOvo",
"vegetarian",
"vegetarianKosher",
"vegetarianRaw"
],
"meta:enum": {
"regularMeal": "Regular Meal",
"blandLowResidue": "Bland / Low Residue",
"childMeal": "Child Meal",
"diabeticMeal": "Diabetic Meal",
"fruitPlatter": "Fruit Platter",
"glutenFreeMeal": "Gluten Free Meal",
"infantBabyMeal": "Infant / Baby Meal",
"kosherMeal": "Kosher Meal",
"lowCalorieMeal": "Low Calorie Meal",
"lowSaltSodiumMeal": "Low Salt / Sodium Meal",
"halalMeal": "Halal Meal",
"noSaltMeal": "No Salt Meal",
"nonLactoseMeal": "Non Lactose Meal",
"peanutFreeMeal": "Peanut Free Meal",
"seafoodMeal": "Seafood Meal",
"vegLactoOvo": "Veg Lacto-Ovo",
"vegetarian": "Vegetarian",
"vegetarianKosher": "Vegetarian Kosher",
"vegetarianRaw": "Vegetarian, Raw"
},
"description": "Tracks the user's meal preference, if provided.",
"meta:titleId": "travel-preferences##xdm:meal##title##78791",
"meta:descriptionId": "travel-preferences##xdm:meal##description##17671"
},
"xdm:preferredDepartureAirportCode": {
"title": "Preferred Departure Airport Code",
"type": "string",
"description": "Records the user's preferred home/departure airport code.",
"pattern": "^[A-Z]{3}$",
"meta:titleId": "travel-preferences##xdm:preferredDepartureAirportCode##title##71321",
"meta:descriptionId": "travel-preferences##xdm:preferredDepartureAirportCode##description##57041"
},
"xdm:ticketDelivery": {
"title": "Ticket Delivery",
"type": "string",
"enum": [
"eTicket",
"physical"
],
"meta:enum": {
"eTicket": "E-Ticket",
"physical": "Physical"
},
"description": "Defines the user's preferred ticket delivery method.",
"meta:titleId": "travel-preferences##xdm:ticketDelivery##title##93181",
"meta:descriptionId": "travel-preferences##xdm:ticketDelivery##description##26661"
},
"xdm:medicalAlerts": {
"title": "Medical Alerts",
"type": "string",
"description": "Captures any medical alerts for the user.",
"meta:titleId": "travel-preferences##xdm:medicalAlerts##title##70071",
"meta:descriptionId": "travel-preferences##xdm:medicalAlerts##description##77891"
},
"xdm:roomType": {
"title": "Room Type",
"type": "string",
"enum": [
"noPreference",
"king",
"queen",
"double",
"twin",
"single",
"disability"
],
"meta:enum": {
"noPreference": "No Preference",
"king": "King",
"queen": "Queen",
"double": "Double",
"twin": "Twin",
"single": "Single",
"disability": "Disability"
},
"description": "Tracks the user's preferred room type.",
"meta:titleId": "travel-preferences##xdm:roomType##title##79691",
"meta:descriptionId": "travel-preferences##xdm:roomType##description##61471"
},
"xdm:smokingRoom": {
"title": "Smoking Room",
"type": "boolean",
"description": "Flags if the user prefers a smoking room.",
"meta:titleId": "travel-preferences##xdm:smokingRoom##title##77111",
"meta:descriptionId": "travel-preferences##xdm:smokingRoom##description##40451"
},
"xdm:foamPillows": {
"title": "Foam Pillows",
"type": "boolean",
"description": "Captures if the user prefers foam pillows.",
"meta:titleId": "travel-preferences##xdm:foamPillows##title##23641",
"meta:descriptionId": "travel-preferences##xdm:foamPillows##description##29811"
},
"xdm:rollAwayBed": {
"title": "Roll Away Bed",
"type": "boolean",
"description": "Captures if the user requires a rollaway bed.",
"meta:titleId": "travel-preferences##xdm:rollAwayBed##title##64161",
"meta:descriptionId": "travel-preferences##xdm:rollAwayBed##description##43221"
},
"xdm:crib": {
"title": "Crib",
"type": "boolean",
"description": "Captures if the user requires a crib.",
"meta:titleId": "travel-preferences##xdm:crib##title##50071",
"meta:descriptionId": "travel-preferences##xdm:crib##description##88481"
},
"xdm:earlyCheckIn": {
"title": "Early Check-In",
"type": "boolean",
"description": "Flags if the user prefers a lodging property with early check-in available.",
"meta:titleId": "travel-preferences##xdm:earlyCheckIn##title##91341",
"meta:descriptionId": "travel-preferences##xdm:earlyCheckIn##description##10681"
},
"xdm:gym": {
"title": "Gym",
"type": "boolean",
"description": "Flags if the user prefers a lodging property with a gym/fitness room.",
"meta:titleId": "travel-preferences##xdm:gym##title##84811",
"meta:descriptionId": "travel-preferences##xdm:gym##description##93131"
},
"xdm:pool": {
"title": "Pool",
"type": "boolean",
"description": "Flags if the user prefers a lodging property with a swimming pool.",
"meta:titleId": "travel-preferences##xdm:pool##title##59941",
"meta:descriptionId": "travel-preferences##xdm:pool##description##23221"
},
"xdm:hasRestaurant": {
"title": "Has Restaurant",
"type": "boolean",
"description": "Flags if the user prefers a lodging property with a restaurant.",
"meta:titleId": "travel-preferences##xdm:hasRestaurant##title##32111",
"meta:descriptionId": "travel-preferences##xdm:hasRestaurant##description##67411"
},
"xdm:roomService": {
"title": "Room Service",
"type": "boolean",
"description": "Flags if the user prefers a lodging property with room service available.",
"meta:titleId": "travel-preferences##xdm:roomService##title##94981",
"meta:descriptionId": "travel-preferences##xdm:roomService##description##80731"
},
"xdm:wheelchairAccessible": {
"title": "Wheelchair Accessible",
"type": "boolean",
"description": "Tracks if the user requres a wheelchair accessible room.",
"meta:titleId": "travel-preferences##xdm:wheelchairAccessible##title##15421",
"meta:descriptionId": "travel-preferences##xdm:wheelchairAccessible##description##2991"
},
"xdm:visuallyImpairedAccessible": {
"title": "Visually Impaired Accessible",
"type": "boolean",
"description": "Tracks if the user requres a visually impaired accessible room.",
"meta:titleId": "travel-preferences##xdm:visuallyImpairedAccessible##title##28351",
"meta:descriptionId": "travel-preferences##xdm:visuallyImpairedAccessible##description##29801"
},
"xdm:vehicleType": {
"title": "Vehicle Type",
"type": "string",
"enum": [
"miniCar",
"economyCar",
"economyCarHybrid",
"compactCar",
"compactCarHybrid",
"intermediateCar",
"intermediateCarHybrid",
"standardCar",
"standardCarHybrid",
"fullSizeCar",
"fullSizeCarHybrid",
"intermediateSUV",
"miniVan",
"standardSUV",
"fullSizeSUV",
"fullSizePickup",
"premiumCar",
"luxuryCar",
"specializedVehicle"
],
"meta:enum": {
"miniCar": "Mini Car",
"economyCar": "Economy Car",
"economyCarHybrid": "Economy Car Hybrid",
"compactCar": "Compact Car",
"compactCarHybrid": "Compact Car Hybrid",
"intermediateCar": "Intermediate Car",
"intermediateCarHybrid": "Intermediate Car Hybrid",
"standardCar": "Standard Car",
"standardCarHybrid": "Standard Car Hybrid",
"fullSizeCar": "Full-size Car",
"fullSizeCarHybrid": "Full-size Car Hybrid",
"intermediateSUV": "Intermediate SUV",
"miniVan": "Mini Van",
"standardSUV": "Standard SUV",
"fullSizeSUV": "Full-size SUV",
"fullSizePickup": "Full-size Pickup",
"premiumCar": "Premium Car",
"luxuryCar": "Luxury Car",
"specializedVehicle": "Specialized Vehicle"
},
"description": "Records the user's vehicle type preference.",
"meta:titleId": "travel-preferences##xdm:vehicleType##title##73971",
"meta:descriptionId": "travel-preferences##xdm:vehicleType##description##50501"
},
"xdm:smokingVehicle": {
"title": "Smoking Vehicle",
"type": "boolean",
"description": "Flags if the user prefers a smoking vehicle.",
"meta:titleId": "travel-preferences##xdm:smokingVehicle##title##9991",
"meta:descriptionId": "travel-preferences##xdm:smokingVehicle##description##6641"
},
"xdm:manualTransmission": {
"title": "Manual Transmission",
"type": "boolean",
"description": "Records if a user prefers a manual transmission instead of an automatic transmission.",
"meta:titleId": "travel-preferences##xdm:manualTransmission##title##6761",
"meta:descriptionId": "travel-preferences##xdm:manualTransmission##description##69501"
}
},
"meta:descriptionId": "travel-preferences##xdm:travelPreferences##description##76261"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/travel-preferences"
}
],
"meta:status": "stable",
"meta:titleId": "travel-preferences##title##82371",
"meta:descriptionId": "travel-preferences##description##2511",
"examples": [
{
"xdm:seat": "window",
"xdm:seatSection ": "forward",
"xdm:meal": "regularMeal",
"xdm:preferredDepartureAirportCode": "ORD",
"xdm:ticketDelivery": "eTicket",
"xdm:roomType": "king",
"xdm:smokingRoom": false,
"xdm:earlyCheckIn": true,
"xdm:gym": true,
"xdm:vehicleType": "standardSUV",
"xdm:smoking": false,
"xdm:manualTransmission": true
}
]
}