forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistent usage of @id and introduction of XDM properties that serve…
… as references to other instances Addition of meta:abstract and meta:extensible Documentation of schemas and properties Factoring out schema for model usage in eligibility rules Removal of repeated property declarations in personalized offer and fallback offer Removal of state pending from Offer Activity Removal of state in-use from Offer Removal of schema for offer category
- Loading branch information
Showing
19 changed files
with
186 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
extensions/adobe/experience/offer-management/eligibility-rule.example.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"@id": "rule-0001", | ||
"xdm:name": "Californians with two or more purchases of more than $1000", | ||
"xdm:value": "profile.xdm:homeAddress.xdm:stateOrProvince = \"CA\" AND (SELECT X FROM xEvent WHERE X.xdm:commerce.xdm:order.xdm:priceTotal > 1000 AND X.xdm:commerce.xdm:order.xdm:currencyCode = \"USD\").count() > 1", | ||
"usedProperties" : [ | ||
{ | ||
"xdm:modelReference" : "https://ns.adobe.com/xdm/context/profile", | ||
"xdm:modelPropertyPaths" : [ | ||
"xdm:homeAddress.xdm:stateProvince" | ||
] | ||
}, | ||
{ | ||
"xdm:modelReference" : "https://ns.adobe.com/xdm/context/experienceevent", | ||
"xdm:modelPropertyPaths" : [ | ||
"xdm:commerce.xdm:order.xdm:priceTotal", | ||
"xdm:commerce.xdm:order.xdm:currencyCode" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
extensions/adobe/experience/offer-management/model-usage.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"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/model-usage", | ||
"meta:abstract": false, | ||
"meta:extensible": true, | ||
"type": "object", | ||
"title": "Used XDM Models and Properties from those models", | ||
"description": "A key-value pair whose key is reference to the model, i.e. its @id property. The value is an array of strings, each string representing a fully qualified path to an XDM field with dots used as the path delimiter.", | ||
"definitions": { | ||
"model-usage": { | ||
"type": "object", | ||
"title": "Model and Used Properties", | ||
"description": "A key-value pair whose key is reference to the model, i.e. its @id property. The value is an array of strings, each string representing a fully qualified path to an XDM field with dots used as the path delimiter.", | ||
"properties": { | ||
"xdm:modelReference": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Reference to the model, i.e. its @id property. " | ||
}, | ||
"xdm:modelPropertyPaths": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"description": "A fully qualified path to an XDM field with dots used as the path delimite " | ||
} | ||
} | ||
}, | ||
"required": ["xdm:modelReference", "xdm:modelPropertyPaths"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
extensions/adobe/experience/offer-management/offer-category.schema.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.