Bug 30275: Rename issues.renewals to issues.renewals_count
[koha.git] / api / v1 / swagger / definitions / checkout.yaml
1 ---
2 type: object
3 properties:
4   checkout_id:
5     type: integer
6     description: internally assigned checkout identifier
7   patron_id:
8     type: integer
9     description: Internal patron identifier
10   item_id:
11     type: integer
12     description: internal identifier of checked out item
13   due_date:
14     type: string
15     format: date-time
16     description: Due date
17   library_id:
18     type:
19       - string
20       - "null"
21     description: code of the library the item was checked out
22   issuer_id:
23     type:
24       - integer
25       - "null"
26     description: internally assigned for the user that processed the checkout
27   checkin_date:
28     type:
29       - string
30       - "null"
31     format: date-time
32     description: Date the item was returned
33   last_renewed_date:
34     type:
35       - string
36       - "null"
37     format: date-time
38     description: Date the item was last renewed
39   renewals_count:
40     type:
41       - integer
42       - "null"
43     description: Number of renewals
44   unseen_renewals:
45     type:
46       - integer
47       - "null"
48     description: Number of consecutive unseen renewals
49   auto_renew:
50     type: boolean
51     description: Auto renewal
52   auto_renew_error:
53     type:
54       - string
55       - "null"
56     description: Auto renewal error
57   timestamp:
58     type: string
59     description: Last update time
60   checkout_date:
61     type: string
62     format: date-time
63     description: Date the item was issued
64   onsite_checkout:
65     type: boolean
66     description: On site checkout
67   note:
68     type:
69       - string
70       - "null"
71     description: Issue note text
72   note_date:
73     type:
74       - string
75       - "null"
76     format: date
77     description: Datetime of the issue note
78   note_seen:
79     type:
80       - boolean
81       - "null"
82     description: has the note been seen already
83   issuer:
84     type:
85       - object
86       - "null"
87     description: The object representing the checkout issuer
88   item:
89     type:
90       - object
91       - "null"
92     description: The object representing the checked out item
93   library:
94     type:
95       - object
96       - "null"
97     description: The object representing the checkout library
98   patron:
99     type:
100       - object
101       - "null"
102     description: The object representing the checkout patron
103 additionalProperties: false