-
Notifications
You must be signed in to change notification settings - Fork 35
/
TransferEvent.yml
236 lines (236 loc) · 5.53 KB
/
TransferEvent.yml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
$linkedData:
term: TransferEvent
'@id': https://w3id.org/traceability#TransferEvent
title: Transfer Event
description: A transfer custody or ownership event, extending the Event schema.
type: object
properties:
type:
type: array
readOnly: true
const:
- Event
- TransferEvent
default:
- Event
- TransferEvent
items:
type: string
enum:
- Event
- TransferEvent
eventType:
type: string
enum:
- TransferOwnership
- TransferCustody
eventId:
type: string
eventTime:
type: string
place:
title: Place
description: Information on where the event took place.
$ref: ./Place.yml
$linkedData:
term: place
'@id': https://schema.org/Place
price:
title: Price
description: >-
The offer price of a product.
type: number
$linkedData:
term: price
'@id': https://schema.org/price
products:
title: Products
description: The products referenced by the event in hashlinks.
type: array
items:
type: string
format: url
$linkedData:
term: products
'@id': https://schema.org/Product
actor:
title: Event Actors
description: >-
List of organizations acted on the event, https://w3id.org/traceability#Organization
type: array
items:
$ref: ./Organization.yml
$linkedData:
term: organization
'@id': https://w3id.org/traceability#Organization
initiator:
title: Initiator Identifier
description: Identifiers for the initiator of transfer.
type: string
$linkedData:
term: identifier
'@id': https://w3id.org/traceability#initiator
receiver:
title: Receiver Identifier
description: Identifiers for the receiver of transfer.
type: string
$linkedData:
term: identifier
'@id': https://w3id.org/traceability#receiver
portOfArrival:
title: Port of Arrival
description: Port of arrival to which the product(s) were transferred
$ref: ./Place.yml
$linkedData:
term: place
'@id': https://schema.org/Place
portOfEntry:
title: Port of Entry
description: Port of entry to which the product(s) were transferred
$ref: ./Place.yml
$linkedData:
term: place
'@id': https://schema.org/Place
portOfDestination:
title: Port of Destination
description: Port of destination to which the product[s) were transferred
$ref: ./Place.yml
$linkedData:
term: place
'@id': https://schema.org/Place
countryOfDestination:
title: Country of Destination
description: Country to which the product(s) were transferred.
type: string
$linkedData:
term: addressCountry
'@id': https://schema.org/addressCountry
receiptLocation:
title: Receipt Location
description: The address from which the commodity is being shipped
$ref: ./Place.yml
$linkedData:
term: place
'@id': https://schema.org/Place
additionalProperties: false
required:
- type
example: |-
{
"type": [
"Event",
"TransferEvent"
],
"eventType": "TransferOwnership",
"eventId": "b9d46bb9-9c0f-48aa-8d7d-d115aa9b1121",
"eventTime": "2022-04-01T19:13:48.305Z",
"place": {
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "42.8864",
"longitude": "-78.8784"
},
"type": [
"Place"
],
"address": {
"type": [
"PostalAddress"
],
"postalCode": "",
"addressRegion": "New York",
"streetAddress": "",
"addressCountry": "US",
"addressLocality": "Buffalo"
}
},
"price": 1200,
"products": [
"http://example.org/products/05b6867b-2211-4c8f-ae7a-2a770b9510af?hl=ZfqLwiBj3yidP7p344d71z8ybyjb2+YVfhckGGHHEzk="
],
"actor": [
{
"name": "Fabricator Co.",
"type": [
"Organization"
]
},
{
"name": "Steel Co.",
"type": [
"Organization"
]
}
],
"initiator": "did:key:z6MkiQ89X1yScaGBJ5sVS62wGFAhzyz1zPiwmK8GrchJ5EKX",
"receiver": "did:key:z6Mko5QGjK56EwM59qdjn99TrJqQFvNcokxwwCTUJ8sfiG4Z",
"portOfArrival": {
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "42.8864",
"longitude": "-78.8784"
},
"type": [
"Place"
],
"address": {
"type": [
"PostalAddress"
],
"postalCode": "",
"addressRegion": "New York",
"streetAddress": "",
"addressCountry": "USA",
"addressLocality": "Buffalo"
}
},
"portOfEntry": {
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "42.8864",
"longitude": "-78.8784"
},
"type": [
"Place"
],
"address": {
"type": [
"PostalAddress"
],
"postalCode": "",
"addressRegion": "New York",
"streetAddress": "",
"addressCountry": "USA",
"addressLocality": "Buffalo"
}
},
"portOfDestination": {
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "42.8864",
"longitude": "-78.8784"
},
"type": [
"Place"
],
"address": {
"type": [
"PostalAddress"
],
"postalCode": "",
"addressRegion": "New York",
"streetAddress": "",
"addressCountry": "USA",
"addressLocality": "Buffalo"
}
},
"countryOfDestination": "CA"
}