Koha/api/v1/swagger/definitions/checkout.json
Andrew Isherwood 8595e80b78 Bug 24083: Add support for unseen_renewals
This patch adds support for unseen renewals.

Here we retrofit knowledge of unseen renewals and add the display of unseen
renewal counts and warnings, in addition to adding the ability to
specify a renewal as being "unseen".

The functionality added here is goverened by the UnseenRenewals syspref.

Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-11 16:09:58 +01:00

84 lines
2.1 KiB
JSON

{
"type": "object",
"properties": {
"checkout_id": {
"type": "integer",
"description": "internally assigned checkout identifier"
},
"patron_id": {
"$ref": "../x-primitives.json#/patron_id"
},
"item_id": {
"type": "integer",
"description": "internal identifier of checked out item"
},
"due_date": {
"type": "string",
"format": "date-time",
"description": "Due date"
},
"library_id": {
"type": ["string", "null"],
"description": "code of the library the item was checked out"
},
"issuer_id": {
"type": [ "integer", "null" ],
"description": "internally assigned for the user that processed the checkout"
},
"checkin_date": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date the item was returned"
},
"last_renewed_date": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date the item was last renewed"
},
"renewals": {
"type": ["integer", "null"],
"description": "Number of renewals"
},
"unseen_renewals": {
"type": ["integer", "null"],
"description": "Number of consecutive unseen renewals"
},
"auto_renew": {
"type": "boolean",
"description": "Auto renewal"
},
"auto_renew_error": {
"type": ["string", "null"],
"description": "Auto renewal error"
},
"timestamp": {
"type": "string",
"description": "Last update time"
},
"checkout_date": {
"type": "string",
"format": "date-time",
"description": "Date the item was issued"
},
"onsite_checkout": {
"type": "boolean",
"description": "On site checkout"
},
"note": {
"type": ["string", "null"],
"description": "Issue note text"
},
"note_date": {
"type": ["string", "null"],
"format": "date",
"description": "Datetime of the issue note"
},
"issuer": {
"type": [
"object",
"null"
],
"description": "The object representing the checkout issuer"
}
}
}