From dcd9f06ff8d3ac401315846a25095febf642a284 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 14 Nov 2024 20:43:52 +0000 Subject: [PATCH] Bug 33641: (follow-up) Add field to api spec Signed-off-by: Tomas Cohen Arazi Edit: I changed the attribute name to match our guidelines (tcohen) --- Koha/Checkout.pm | 1 + Koha/Old/Checkout.pm | 1 + api/v1/swagger/definitions/checkout.yaml | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/Koha/Checkout.pm b/Koha/Checkout.pm index 8b97cf8b369..d0d460ec3ca 100644 --- a/Koha/Checkout.pm +++ b/Koha/Checkout.pm @@ -223,6 +223,7 @@ on the API. sub to_api_mapping { return { + checkin_library => 'checkin_library_id', issue_id => 'checkout_id', borrowernumber => 'patron_id', itemnumber => 'item_id', diff --git a/Koha/Old/Checkout.pm b/Koha/Old/Checkout.pm index 2967a78afe4..abd19d8bb64 100644 --- a/Koha/Old/Checkout.pm +++ b/Koha/Old/Checkout.pm @@ -148,6 +148,7 @@ on the API. sub to_api_mapping { return { + checkin_library => 'checkin_library_id', issue_id => 'checkout_id', borrowernumber => 'patron_id', itemnumber => 'item_id', diff --git a/api/v1/swagger/definitions/checkout.yaml b/api/v1/swagger/definitions/checkout.yaml index 4ace091bd58..15211a1d854 100644 --- a/api/v1/swagger/definitions/checkout.yaml +++ b/api/v1/swagger/definitions/checkout.yaml @@ -36,6 +36,11 @@ properties: - "null" format: date-time description: Date the item was returned + checkin_library_id: + type: + - string + - "null" + description: Internal library identifier for the library at which the item was returned last_renewed_date: type: - string -- 2.47.0