@@ -, +, @@ --- Koha/Patron.pm | 1 + api/v1/swagger/definitions/patron.json | 4 ++++ api/v1/swagger/paths/patrons.json | 6 ++++++ 3 files changed, 11 insertions(+) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -1607,6 +1607,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', --- a/api/v1/swagger/definitions/patron.json +++ a/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" --- a/api/v1/swagger/paths/patrons.json +++ a/api/v1/swagger/paths/patrons.json @@ -296,6 +296,12 @@ "required": false, "type": "string" }, { + "name": "autorenewal", + "in": "query", + "description": "Search on autorenewal", + "required": false, + "type": "boolean" + }, { "name": "altcontact_firstname", "in": "query", "description": "Case insensitive search on altcontact_firstname", --