From d3234490df372ff592d4175320351bddaa36d5a3 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 --- 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 f48e67a696..8b86f41422 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1607,6 +1607,7 @@ sub to_api_mapping { smsalertnumber => 'sms_number', sort1 => 'statistics_1', sort2 => 'statistics_2', + no_autorenewal => 'no_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..cdb216b26c 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" }, + "no_autorenewal": { + "type": "boolean", + "description": "indicate whether patron has opted out of auto-renewal" + }, "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..8d5dc5a998 100644 --- a/api/v1/swagger/paths/patrons.json +++ b/api/v1/swagger/paths/patrons.json @@ -296,6 +296,12 @@ "required": false, "type": "string" }, { + "name": "no_autorenewals", + "in": "query", + "description": "Search on no_autorenewals", + "required": false, + "type": "boolean" + }, { "name": "altcontact_firstname", "in": "query", "description": "Case insensitive search on altcontact_firstname", -- 2.11.0