@@ -, +, @@ checkouts --- Koha/Schema/Result/Issue.pm | 5 +++++ api/v1/swagger/definitions/checkout.json | 23 +++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) --- a/Koha/Schema/Result/Issue.pm +++ a/Koha/Schema/Result/Issue.pm @@ -244,6 +244,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-03 04:12:22 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ozRQZiF1LlOJy4KI53OpFw +__PACKAGE__->add_columns( + '+auto_renew' => { is_boolean => 1 }, + '+onsite_checkout' => { is_boolean => 1 } +); + __PACKAGE__->belongs_to( "borrower", "Koha::Schema::Result::Borrower", --- a/api/v1/swagger/definitions/checkout.json +++ a/api/v1/swagger/definitions/checkout.json @@ -12,37 +12,52 @@ "$ref": "../x-primitives.json#/itemnumber" }, "date_due": { + "type": "string", "description": "Due date" }, "branchcode": { - "$ref": "../x-primitives.json#/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" }, - "return": { - "description": "?" - }, "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" } } } --