forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexperienceevent-order-details.schema.json
106 lines (106 loc) · 4.14 KB
/
experienceevent-order-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
{
"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-order-details",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Order Details",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:tags": {
"industry": [
"all"
]
},
"meta:intendedToExtend": [
"https://ns.adobe.com/xdm/context/experienceevent"
],
"description": "Order data such as product information (SKU, name, quantity), and related information like shipping, billing, payments etc.",
"definitions": {
"experienceevent-order": {
"properties": {
"xdm:productListItems": {
"title": "Product list items",
"type": "array",
"description": "A list of items representing a product selected by a customer with specific options and pricing that are for that usage context at a specific point of time and may differ from the product record.",
"items": {
"$ref": "https://ns.adobe.com/xdm/content/productlistitem"
}
},
"xdm:order": {
"title": "Order",
"$ref": "https://ns.adobe.com/xdm/datatypes/store-web-order",
"description": "Product Orders and realted information like payments."
},
"xdm:store": {
"title": "Store Details",
"type": "object",
"description": "Store related information.",
"properties": {
"xdm:storeID": {
"title": "Store ID",
"type": "string",
"description": "Unique identifier for the store."
}
}
},
"xdm:billing": {
"title": "Billing Details",
"type": "object",
"description": "Billing related information.",
"properties": {
"xdm:address": {
"title": "Billing Address",
"description": "Billing Address.",
"$ref": "https://ns.adobe.com/xdm/common/address"
}
}
},
"xdm:shipping": {
"title": "Shipping",
"$ref": "https://ns.adobe.com/xdm/datatypes/shipping",
"description": "Shipping related informnation for the order."
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/experienceevent-order"
}
],
"meta:status": "experimental",
"examples": [
{
"xdm:productListItems": [
{
"xdm:_id": "1002352692",
"xdm:currencyCode": "USD",
"xdm:quantity": 1,
"xdm:priceTotal": 159,
"xdm:SKU": "1234566"
}
],
"xdm:order": {
"xdm:orderID": "a8g784hjq1mnp3",
"xdm:orderDate": "2017-09-26T15:52:25+00:00",
"xdm:payment": {
"xdm:transactionID": "transactid-a111",
"xdm:paymentAmount": 899.99,
"xdm:paymentType": "credit",
"xdm:currencyCode": "USD"
},
"xdm:priceTotal": 999.98
},
"xdm:shipping": {
"xdm:shippingAmount": 20,
"xdm:shippingMethod": "standard",
"xdm:shippingDestination": "home"
}
}
]
}