Bug 22421: (QA follow-up) Update API mapping and specs
We missed some cases where the API specs and mappings were missing for the new old_issue_id field. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
abbd9e59bd
commit
c10c244a28
|
|
@ -48,6 +48,7 @@ sub to_api_mapping {
|
|||
borrowernumber => 'patron_id',
|
||||
branchcode => 'library_id',
|
||||
issue_id => undef,
|
||||
old_issue_id => undef,
|
||||
itemnumber => undef,
|
||||
manager_id => 'user_id',
|
||||
note => 'internal_note',
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ sub to_api_mapping {
|
|||
borrowernumber => 'patron_id',
|
||||
branchcode => 'library_id',
|
||||
issue_id => 'checkout_id',
|
||||
old_issue_id => 'old_checkout_id',
|
||||
itemnumber => 'item_id',
|
||||
manager_id => 'user_id',
|
||||
note => 'internal_note',
|
||||
|
|
|
|||
|
|
@ -982,6 +982,7 @@ sub to_api_mapping {
|
|||
borrowernumber => 'patron_id',
|
||||
branchcode => 'library_id',
|
||||
issue_id => 'checkout_id',
|
||||
old_issue_id => 'old_checkout_id',
|
||||
itemnumber => 'item_id',
|
||||
manager_id => 'user_id',
|
||||
note => 'internal_note',
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@ properties:
|
|||
- integer
|
||||
- "null"
|
||||
description: Internal identifier for the checkout the account line is related to
|
||||
old_checkout_id:
|
||||
type:
|
||||
- integer
|
||||
- "null"
|
||||
description: Internal identifier for the old checkout the account line is related to
|
||||
credit_number:
|
||||
type:
|
||||
- string
|
||||
|
|
|
|||
|
|
@ -23,6 +23,11 @@ properties:
|
|||
- integer
|
||||
- "null"
|
||||
description: Internal identifier for the checkout the account line is related to
|
||||
old_checkout_id:
|
||||
type:
|
||||
- integer
|
||||
- "null"
|
||||
description: Internal identifier for the old checkout the account line is related to
|
||||
date:
|
||||
type: string
|
||||
format: date-time
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ subtest 'get_balance() tests' => sub {
|
|||
$debit_2->discard_changes;
|
||||
|
||||
$t->get_ok("//$userid:$password@/api/v1/patrons/$patron_id/account")
|
||||
->status_is(200)->json_is(
|
||||
->status_is(200)->or(sub { diag $t->tx->res->body } )->json_is(
|
||||
{
|
||||
balance => 100.01,
|
||||
outstanding_debits => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue