Bug 9834: (QA follow-up) API Corrections

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomas Cohen Arazi 2019-06-17 12:16:53 -03:00 committed by Martin Renvoize
parent 5be6c78e6e
commit 5aaae31a78
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 9 additions and 2 deletions

View File

@ -464,6 +464,7 @@ our $to_api_mapping = {
suspend => 'suspended',
suspend_until => 'suspended_until',
itemtype => 'item_type',
item_level_hold => 'item_level',
};
=head3 $to_model_mapping
@ -486,6 +487,7 @@ our $to_model_mapping = {
suspended => 'suspend',
suspended_until => 'suspend_until',
item_type => 'itemtype',
item_level => 'item_level_hold',
};
1;

View File

@ -349,8 +349,9 @@ __PACKAGE__->belongs_to(
);
__PACKAGE__->add_columns(
'+lowestPriority' => { is_boolean => 1 },
'+suspend' => { is_boolean => 1 }
'+item_level_hold' => { is_boolean => 1 },
'+lowestPriority' => { is_boolean => 1 },
'+suspend' => { is_boolean => 1 }
);
1;

View File

@ -74,6 +74,10 @@
"item_type": {
"type": ["string", "null"],
"description": "If record level hold, the optional itemtype of the item the patron is requesting"
},
"item_level": {
"type": "boolean",
"description": "If the hold is placed at item level"
}
}
}