Add endpoint that returns information on patron's debarments / excessive fines etc. This endpoint can be used to find out patron's ability for checkouts and holds.
Created attachment 60159 [details] [review] Bug 18013: Add patronstatus to Swagger This patch adds the Swagger definition for patronstatus.
Created attachment 60160 [details] [review] Bug 18013: Add patronstatus operation to controller This patch adds patronstatus operation to Koha::REST::V1::Patron. Also adds new method Koha::Patron->status_not_ok that returns an array of Koha::Exceptions if there are some issues with patron status. To test: 1. prove t/db_dependent/Koha/Patrons.t 2. prove t/db_dependent/api/v1/patrons.t
Tests are still failing due to data type changes.
Created attachment 60161 [details] [review] Bug 18103: Add patronstatus to Swagger This patch adds the Swagger definition for patronstatus.
Created attachment 60162 [details] [review] Bug 18103: Add patronstatus operation to controller This patch adds patronstatus operation to Koha::REST::V1::Patron. Also adds new method Koha::Patron->status_not_ok that returns an array of Koha::Exceptions if there are some issues with patron status. To test: 1. prove t/db_dependent/Koha/Patrons.t 2. prove t/db_dependent/api/v1/patrons.t
Corrected invalid Bug number.
Is this ready to be tested? Please set the status to "Needs signoff" then.