forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselection-constraint.schema.json
More file actions
59 lines (59 loc) · 3.16 KB
/
selection-constraint.schema.json
File metadata and controls
59 lines (59 loc) · 3.16 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
{
"meta:license": [
"Copyright 2018 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/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/experience/offer-management/selection-constraint",
"meta:abstract": false,
"meta:extensible": true,
"type": "object",
"title": "Offer Selection Constraint (deprecated)",
"description": "Offer selection constraint specify conditions that have to be met in order for an offer to be included in weighing the best offer. Those constraints can have many aspects, ranging from date constraints over rules applied to the user profile fields to rules checked against contextual data available at decision time. (deprecated)",
"definitions": {
"selection-constraint": {
"properties": {
"xdm:startDate": {
"type": "string",
"format": "date-time",
"title": "Start Date",
"description": "Offer start date. Offers that have not reached their start date are not yet considered eligible in the decisioning.",
"meta:titleId": "selection-constraint##xdm:startDate##title##2031",
"meta:descriptionId": "selection-constraint##xdm:startDate##description##57631"
},
"xdm:endDate": {
"type": "string",
"format": "date-time",
"title": "End Date",
"description": "Offer end date. Offers that have passed their end date are no longer considered eligible in the decisioning process.",
"meta:titleId": "selection-constraint##xdm:endDate##title##98441",
"meta:descriptionId": "selection-constraint##xdm:endDate##description##7271"
},
"xdm:eligibilityRule": {
"type": "string",
"format": "uri",
"title": "Eligibility Rule",
"description": "The reference to an eligibility rule that tests a condition using the profile and/or other contextual XDM instances. The value is the URI (@id) of the eligibility rule that is referenced. See schema https://ns.adobe.com/experience/offer-management/eligibility-rule",
"meta:titleId": "selection-constraint##xdm:eligibilityRule##title##38921",
"meta:descriptionId": "selection-constraint##xdm:eligibilityRule##description##44471"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/selection-constraint"
},
{
"required": [
"xdm:startDate",
"xdm:endDate"
]
}
],
"meta:status": "deprecated",
"meta:titleId": "selection-constraint##title##48461",
"meta:descriptionId": "selection-constraint##description##56401"
}