Bug 36627: (QA follow-up): Rename borrowernumber -> patron_id

To test:
$ prove t/db_dependent/api/v1/erm_counter_logs.t

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-12-30 11:21:44 +00:00 committed by Katrin Fischer
parent be1646fb80
commit 15803e4f29
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 15 additions and 3 deletions

View file

@ -31,6 +31,18 @@ Koha::ERM::EUsage::CounterLog - Koha ErmCounterLog Object class
=cut
=head3 to_api_mapping
This method returns the mapping for representing a Koha::ERM::EUsage::CounterLog
on the API.
=cut
sub to_api_mapping {
return {
borrowernumber => 'patron_id',
};
}
=head3 patron

View file

@ -10,8 +10,8 @@ properties:
type:
- integer
- "null"
borrowernumber:
description: borrowernumber of the counter log
patron_id:
description: patron_id of the counter log
type:
- integer
- "null"
@ -43,5 +43,5 @@ properties:
additionalProperties: false
required:
- filename
- borrowernumber
- patron_id
- counter_files_id