Bug 30642: Make renewal_type an enum in spec and add test
[koha.git] / api / v1 / swagger / definitions / renewal.yaml
1 ---
2 type: object
3 properties:
4   renewal_id:
5     type: integer
6     description: internally assigned renewal identifier
7   checkout_id:
8     type: integer
9     description: internally assigned checkout identifier
10   interface:
11     type:
12       - string
13       - "null"
14     description: "Interface from which the renewal took place (values can be: api, cron, commandline, intranet, opac and sip)"
15   renewer_id:
16     type:
17       - integer
18       - "null"
19     description: internally assigned for the user that processed the renewal
20   renewal_date:
21     type: string
22     format: date-time
23     description: Date the renewal took place
24   seen:
25     type:
26       - boolean
27     description: Seen/Unseen renewal
28   timestamp:
29     type: string
30     description: Last update time
31   renewal_type:
32     type:
33       - string
34       - "null"
35     enum:
36       - Automatic
37       - Manual
38   renewer:
39     type:
40       - object
41       - "null"
42     description: The object representing the renewal issuer
43 additionalProperties: false