/
receipt.json
34 lines (34 loc) · 1.23 KB
/
receipt.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://schema.brickchain.com/v2/receipt.json",
"title": "Receipt",
"description": "A Receipt is a proof of a successful transaction with a service. May be used in the App for further interaction with the service.",
"type": "object",
"allOf": [ { "$ref": "https://schema.brickchain.com/v2/base.json" } ],
"properties": {
"action": {
"type": "string",
"description": "The Action document that formed the Receipt."
},
"uri": {
"type": "string",
"description": "The URI for doing updates on the Receipt."
},
"jwt": {
"type": "string",
"description": "A JWT to be used when doing updates on the Receipt."
},
"intervals": {
"type": "array",
"items": {
"type": "object",
"description": "An Interval, start and end time for i.e. an event or booking."
},
"description": "An array of Intervals, used for events or bookings."
},
"label": {
"type": "string",
"description": "The label describing the Receipt."
}
}
}