-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.schema.json
58 lines (58 loc) · 1.92 KB
/
order.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
{
"meta:license": [
"Copyright 2017 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/data/order",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Order",
"type": "object",
"description": "The order placed for a product list.",
"definitions": {
"order": {
"properties": {
"xdm:purchaseID": {
"title": "Purchase ID",
"type": "string",
"description":
"Unique identifier assigned by the seller for this purchase or contract. There is no guarantee that the ID is unique."
},
"xdm:purchaseOrderNumber": {
"title": "Purchase Order Number",
"type": "string",
"description":
"Unique identifier assigned by the purchaser for this purchase or contract."
},
"xdm:payments": {
"title": "Payment List",
"type": "array",
"description": "The list of payments for this order.",
"items": {
"$ref": "https://ns.adobe.com/xdm/data/paymentitem"
}
},
"xdm:currencyCode": {
"title": "Currency",
"type": "string",
"examples": ["USD", "EUR"],
"pattern": "^[A-Z]{3}$",
"description": "The ISO 4217 currency code used for the order totals."
},
"xdm:priceTotal": {
"title": "Price Total",
"type": "number",
"description":
"The total price of this order after all discounts and taxes have been applied."
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/order"
}
],
"meta:status": "experimental"
}