-
Notifications
You must be signed in to change notification settings - Fork 19
/
actual-cost-record.json
339 lines (339 loc) · 9.95 KB
/
actual-cost-record.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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Actual cost record",
"properties": {
"id": {
"description": "Actual cost record ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"lossType": {
"description": "Type of the item loss",
"type": "string",
"enum": [
"Aged to lost",
"Declared lost"
]
},
"lossDate": {
"description": "Date and time when the item was lost",
"type": "string",
"format": "date-time"
},
"expirationDate": {
"description": "Expiration date and time of actual cost record",
"type": "string",
"format": "date-time"
},
"user": {
"description": "User info",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ActualCostRecordUser",
"properties": {
"id": {
"description": "User ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"barcode": {
"description": "User barcode",
"type": "string"
},
"firstName": {
"description": "User first name",
"type": "string"
},
"lastName": {
"description": "User last name",
"type": "string"
},
"middleName": {
"description": "User middle name",
"type": "string"
},
"patronGroupId": {
"description": "Patron group ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"patronGroup": {
"description": "Patron group name",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"id",
"lastName"
]
},
"loan": {
"description": "Loan info",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ActualCostRecordLoan",
"properties": {
"id": {
"description": "Loan ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
}
},
"additionalProperties": false,
"required": [
"id"
]
},
"item": {
"description": "Item info",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ActualCostRecordItem",
"properties": {
"id": {
"description": "Item ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"barcode": {
"description": "Item barcode",
"type": "string"
},
"materialTypeId": {
"description": "Material type ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"materialType": {
"description": "Material type name",
"type": "string"
},
"permanentLocationId": {
"description": "Permanent location ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"permanentLocation": {
"description": "Permanent location name",
"type": "string"
},
"effectiveLocationId": {
"description": "Effective location ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"effectiveLocation": {
"description": "Effective location name",
"type": "string"
},
"loanTypeId": {
"description": "Loan type ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"loanType": {
"description": "Loan type name",
"type": "string"
},
"holdingsRecordId": {
"description": "Holdings record ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"effectiveCallNumberComponents": {
"type": "object",
"description": "Elements of a full call number generated from the item or holding",
"properties": {
"callNumber": {
"type": "string",
"description": "Effective Call Number is an identifier assigned to an item or its holding and associated with the item."
},
"prefix": {
"type": "string",
"description": "Effective Call Number Prefix is the prefix of the identifier assigned to an item or its holding and associated with the item."
},
"suffix": {
"type": "string",
"description": "Effective Call Number Suffix is the suffix of the identifier assigned to an item or its holding and associated with the item."
}
},
"additionalProperties": false
},
"volume": {
"type": "string",
"description": "Volume is intended for monographs when a multipart monograph (e.g. a biography of George Bernard Shaw in three volumes)."
},
"enumeration": {
"type": "string",
"description": "Enumeration is the descriptive information for the numbering scheme of a serial."
},
"chronology": {
"type": "string",
"description": "Chronology is the descriptive information for the dating scheme of a serial."
},
"displaySummary": {
"description": "Display summary about the item",
"type": "string"
},
"copyNumber": {
"type": "string",
"description": "Copy number is the piece identifier. The copy number reflects if the library has a copy of a single-volume monograph; one copy of a multi-volume, (e.g. Copy 1, or C.7.)"
}
},
"additionalProperties": false,
"required": [
"id",
"materialTypeId",
"materialType",
"loanTypeId",
"loanType",
"holdingsRecordId"
]
},
"instance": {
"description": "Instance info",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ActualCostRecordInstance",
"properties": {
"id": {
"description": "Instance ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"title": {
"description": "Instance title",
"type": "string"
},
"identifiers": {
"type": "array",
"description": "An extensible set of name-value pairs of identifiers associated with the resource",
"minItems": 0,
"items": {
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ActualCostRecordIdentifier",
"properties": {
"value": {
"type": "string",
"description": "Resource identifier value"
},
"identifierType": {
"type": "string",
"description": "Name of resource identifier type (e.g. ISBN, ISSN, LCCN, CODEN, Locally defined identifiers)"
},
"identifierTypeId": {
"type": "string",
"description": "UUID of resource identifier type (e.g. ISBN, ISSN, LCCN, CODEN, Locally defined identifiers)",
"$ref": "raml-util/schemas/uuid.schema"
}
},
"additionalProperties": false,
"required": [
"value",
"identifierType",
"identifierTypeId"
]
}
},
"contributors": {
"type": "array",
"description": "List of contributors",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Contributor name"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
}
},
"additionalProperties": false,
"required": [
"id",
"title"
]
},
"feeFine": {
"description": "Fee/fine info",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ActualCostRecordFeeFine",
"properties": {
"accountId": {
"description": "ID of the fee/fine (\"account\") instance",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"billedAmount": {
"description": "Initial amount of a fee/fine created upon billing",
"type": "number",
"minimum": 0.0
},
"ownerId": {
"description": "Fee/fine owner ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"owner": {
"description": "Fee/fine owner name",
"type": "string"
},
"typeId": {
"description": "Fee/fine type ID",
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"type": {
"description": "Fee/fine type name",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"ownerId",
"owner",
"typeId",
"type"
]
},
"status": {
"description": "Status of the actual cost record",
"type": "string",
"enum": [
"Open",
"Billed",
"Cancelled",
"Expired"
],
"default": "Open"
},
"additionalInfoForStaff": {
"description": "Additional information for staff",
"type": "string"
},
"additionalInfoForPatron": {
"description": "Additional information for a patron",
"type": "string"
},
"metadata": {
"description": "Metadata about creation and changes, provided by the server (client should not provide)",
"type": "object",
"$ref": "raml-util/schemas/metadata.schema"
}
},
"additionalProperties": false,
"required": [
"lossType",
"lossDate",
"user",
"loan",
"item",
"instance",
"feeFine",
"status"
]
}