]> git.koha-community.org Git - koha.git/commit
Bug 21043: Add debit REST endpoint
authorAgustin Moyano <agustinmoyano@theke.io>
Mon, 27 Feb 2023 15:51:16 +0000 (12:51 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 15:13:51 +0000 (12:13 -0300)
commitab10759c5061ccbd957b667ddf345a4bc174769c
treee536851b9f882f4340b201273fae0a20f811d4b0
parent1ecc49dc7aa2331dacebd9a6a0c5d6a88dacbdbe
Bug 21043: Add debit REST endpoint

This patch adds an endpoint to create a debit for a patron.

Testplan

1. Create a new account debit type (Administration > Debit types)
2. Add a fee with this debit type to a patron’s account via API
3. Make sure that this fee is shown in the accounting overview in the patron’s account in the staff interface
4. Make sure that it is possible to make a payment for this fee

Sponsored-by: The Research University in the Helmholtz Association (KIT)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Patrons/Account.pm
api/v1/swagger/definitions/debit.yaml
api/v1/swagger/paths/patrons_account.yaml
t/db_dependent/api/v1/patrons_accounts.t