From 4e69b19de8c95f66eabae245950224c21cf8d039 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 23 Jan 2020 02:36:29 +0000 Subject: [PATCH] Bug 24476: API Updates Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 1 + api/v1/swagger/definitions/patron.json | 4 ++++ api/v1/swagger/paths/patrons.json | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 4cd9099d6a..331d7b9408 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1671,6 +1671,7 @@ sub to_api_mapping { smsalertnumber => 'sms_number', sort1 => 'statistics_1', sort2 => 'statistics_2', + autorenewal => 'autorenewal', streetnumber => 'street_number', streettype => 'street_type', zipcode => 'postal_code', diff --git a/api/v1/swagger/definitions/patron.json b/api/v1/swagger/definitions/patron.json index 06ed23b9ac..cf5eedf52d 100644 --- a/api/v1/swagger/definitions/patron.json +++ b/api/v1/swagger/definitions/patron.json @@ -191,6 +191,10 @@ "type": ["string", "null"], "description": "a field that can be used for any information unique to the library" }, + "autorenewal": { + "type": "boolean", + "description": "indicate whether auto-renewal is allowed for patron" + }, "altcontact_firstname": { "type": ["string", "null"], "description": "first name of alternate contact for the patron" diff --git a/api/v1/swagger/paths/patrons.json b/api/v1/swagger/paths/patrons.json index 27bd08f69f..bb4efd3caf 100644 --- a/api/v1/swagger/paths/patrons.json +++ b/api/v1/swagger/paths/patrons.json @@ -295,6 +295,12 @@ "description": "Case insensitive search on statistics_2", "required": false, "type": "string" + }, { + "name": "autorenewal", + "in": "query", + "description": "Search on autorenewal", + "required": false, + "type": "boolean" }, { "name": "altcontact_firstname", "in": "query", -- 2.39.5