Bug 24476: API Updates
authorNick Clemens <nick@bywatersolutions.com>
Thu, 23 Jan 2020 02:36:29 +0000 (02:36 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 24 Mar 2020 11:23:36 +0000 (11:23 +0000)
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/Patron.pm
api/v1/swagger/definitions/patron.json
api/v1/swagger/paths/patrons.json

index 4cd9099..331d7b9 100644 (file)
@@ -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',
index 06ed23b..cf5eedf 100644 (file)
       "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"
index 27bd08f..bb4efd3 100644 (file)
         "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",