Koha/api/v1/swagger/definitions/checkout.json
Tomas Cohen Arazi b63fd774c1 Bug 13895: (QA follow-up) Adjust OpenAPI definitions for checkouts
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-03-28 19:38:41 +00:00

63 lines
1.5 KiB
JSON

{
"type": "object",
"properties": {
"issue_id": {
"type": "string",
"description": "internally assigned checkout identifier"
},
"borrowernumber": {
"$ref": "../x-primitives.json#/borrowernumber"
},
"itemnumber": {
"$ref": "../x-primitives.json#/itemnumber"
},
"date_due": {
"type": "string",
"description": "Due date"
},
"branchcode": {
"type": "string",
"description": "code of the library the item was checked out"
},
"issuingbranch": {
"type": "string",
"description": "Code of the branch where issue was made"
},
"returndate": {
"type": ["string", "null"],
"description": "Date the item was returned"
},
"lastreneweddate": {
"type": ["string", "null"],
"description": "Date the item was last renewed"
},
"renewals": {
"type": ["integer", "null"],
"description": "Number of renewals"
},
"auto_renew": {
"type": "boolean",
"description": "Auto renewal"
},
"timestamp": {
"type": "string",
"description": "Last update time"
},
"issuedate": {
"type": ["string", "null"],
"description": "Date the item was issued"
},
"onsite_checkout": {
"type": "boolean",
"description": "On site checkout"
},
"note": {
"type": ["string", "null"],
"description": "Issue note text"
},
"notedate": {
"type": ["string", "null"],
"description": "Datetime of the issue note"
}
}
}