]> git.koha-community.org Git - koha.git/blob - api/v1/swagger/definitions/checkout.json
Bug 13895: (follow-up) Adapt checkout endpoint to openapi, update terminology
[koha.git] / api / v1 / swagger / definitions / checkout.json
1 {
2   "type": "object",
3   "properties": {
4     "checkout_id": {
5       "type": "integer",
6       "description": "internally assigned checkout identifier"
7     },
8     "patron_id": {
9       "$ref": "../x-primitives.json#/patron_id"
10     },
11     "item_id": {
12       "type": "integer",
13       "description": "internal identifier of checked out item"
14     },
15     "due_date": {
16       "type": "string",
17       "format": "date-time",
18       "description": "Due date"
19     },
20     "library_id": {
21       "type": ["string", "null"],
22       "description": "code of the library the item was checked out"
23     },
24     "checkin_date": {
25       "type": ["string", "null"],
26       "format": "date",
27       "description": "Date the item was returned"
28     },
29     "last_renewed_date": {
30       "type": ["string", "null"],
31       "format": "date-time",
32       "description": "Date the item was last renewed"
33     },
34     "renewals": {
35       "type": ["integer", "null"],
36       "description": "Number of renewals"
37     },
38     "auto_renew": {
39       "type": "boolean",
40       "description": "Auto renewal"
41     },
42     "timestamp": {
43       "type": "string",
44       "description": "Last update time"
45     },
46     "checked_out_date": {
47       "type": "string",
48       "format": "date-time",
49       "description": "Date the item was issued"
50     },
51     "onsite_checkout": {
52       "type": "boolean",
53       "description": "On site checkout"
54     },
55     "note": {
56       "type": ["string", "null"],
57       "description": "Issue note text"
58     },
59     "note_date": {
60       "type": ["string", "null"],
61       "format": "date",
62       "description": "Datetime of the issue note"
63     }
64   }
65 }