Tomas Cohen Arazi
c90f60adfc
This patch makes the renewal_type an enum, to match the change on the DB. A test is added to account the fact the API is always setting 'Manual' request type. Bonus: small portion of code gets a tidy, should've been asked by QA. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
43 lines
992 B
YAML
43 lines
992 B
YAML
---
|
|
type: object
|
|
properties:
|
|
renewal_id:
|
|
type: integer
|
|
description: internally assigned renewal identifier
|
|
checkout_id:
|
|
type: integer
|
|
description: internally assigned checkout identifier
|
|
interface:
|
|
type:
|
|
- string
|
|
- "null"
|
|
description: "Interface from which the renewal took place (values can be: api, cron, commandline, intranet, opac and sip)"
|
|
renewer_id:
|
|
type:
|
|
- integer
|
|
- "null"
|
|
description: internally assigned for the user that processed the renewal
|
|
renewal_date:
|
|
type: string
|
|
format: date-time
|
|
description: Date the renewal took place
|
|
seen:
|
|
type:
|
|
- boolean
|
|
description: Seen/Unseen renewal
|
|
timestamp:
|
|
type: string
|
|
description: Last update time
|
|
renewal_type:
|
|
type:
|
|
- string
|
|
- "null"
|
|
enum:
|
|
- Automatic
|
|
- Manual
|
|
renewer:
|
|
type:
|
|
- object
|
|
- "null"
|
|
description: The object representing the renewal issuer
|
|
additionalProperties: false
|