Bug 30642: Make renewal_type an enum in spec and add test
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 Feb 2023 12:35:01 +0000 (09:35 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 Feb 2023 14:08:00 +0000 (11:08 -0300)
commitc90f60adfcb3aeba3dd81122cce96db2c8d1fc1d
tree8f13f1eabae7ac531be9d79afdf8e65d7c399335
parente8c232fcf757659bfb48433e1b8f08fa895e6aaa
Bug 30642: Make renewal_type an enum in spec and add test

This patch makes the renewal_type an enum, to match the change on the
DB. A test is added to account the fact the API is always setting
'Manual' request type.

Bonus: small portion of code gets a tidy, should've been asked by QA.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm
api/v1/swagger/definitions/renewal.yaml
t/db_dependent/api/v1/checkouts.t